diff --git a/app/app.js b/app/app.js index c15390a..ebb0bea 100755 --- a/app/app.js +++ b/app/app.js @@ -1,22 +1,22 @@ /* Declare app level module */ angular.module('JamStash', ['ngCookies', 'ngRoute', 'ngSanitize', - 'jamstash.subsonic.ctrl', 'jamstash.archive.ctrl', 'jamstash.player.ctrl', 'jamstash.queue.ctrl']) + 'jamstash.subsonic.controller', 'jamstash.archive.controller', 'jamstash.player.controller', 'jamstash.queue.controller']) .config(['$routeProvider',function($routeProvider) { 'use strict'; $routeProvider .when('/index', { redirectTo: '/library' }) - .when('/settings', { templateUrl: 'settings/settings.html', controller: 'SettingsCtrl' }) - .when('/queue', { templateUrl: 'queue/queue.html', controller: 'QueueCtrl' }) - .when('/library', { templateUrl: 'subsonic/subsonic.html', controller: 'SubsonicCtrl' }) - .when('/library/:artistId', { templateUrl: 'subsonic/subsonic.html', controller: 'SubsonicCtrl', reloadOnSearch: false }) - .when('/library/:artistId/:albumId', { templateUrl: 'subsonic/subsonic.html', controller: 'SubsonicCtrl', reloadOnSearch: false }) - .when('/podcasts', { templateUrl: 'podcasts/podcasts.html', controller: 'PodcastCtrl' }) - .when('/archive', { templateUrl: 'archive/archive.html', controller: 'ArchiveCtrl' }) - .when('/archive/:artist', { templateUrl: 'archive/archive.html', controller: 'ArchiveCtrl' }) - .when('/archive/:artist/:album', { templateUrl: 'archive/archive.html', controller: 'ArchiveCtrl' }) + .when('/settings', { templateUrl: 'settings/settings.html', controller: 'SettingsController' }) + .when('/queue', { templateUrl: 'queue/queue.html', controller: 'QueueController' }) + .when('/library', { templateUrl: 'subsonic/subsonic.html', controller: 'SubsonicController' }) + .when('/library/:artistId', { templateUrl: 'subsonic/subsonic.html', controller: 'SubsonicController', reloadOnSearch: false }) + .when('/library/:artistId/:albumId', { templateUrl: 'subsonic/subsonic.html', controller: 'SubsonicController', reloadOnSearch: false }) + .when('/podcasts', { templateUrl: 'podcasts/podcasts.html', controller: 'PodcastController' }) + .when('/archive', { templateUrl: 'archive/archive.html', controller: 'ArchiveController' }) + .when('/archive/:artist', { templateUrl: 'archive/archive.html', controller: 'ArchiveController' }) + .when('/archive/:artist/:album', { templateUrl: 'archive/archive.html', controller: 'ArchiveController' }) .otherwise({ redirectTo: '/index' }); }]) diff --git a/app/archive/archive.js b/app/archive/archive.js index fd6592b..fe12d8a 100644 --- a/app/archive/archive.js +++ b/app/archive/archive.js @@ -1,11 +1,11 @@ -/** -* jamstash.archive.ctrl Module +/** +* jamstash.archive.controller Module * * Access Archive.org */ -angular.module('jamstash.archive.ctrl', ['jamstash.archive.service']) +angular.module('jamstash.archive.controller', ['jamstash.archive.service']) -.controller('ArchiveCtrl', ['$scope', '$rootScope', '$location', '$routeParams', '$http', '$timeout', 'utils', 'globals', 'model', 'notifications', 'player', 'archive', 'json', +.controller('ArchiveController', ['$scope', '$rootScope', '$location', '$routeParams', '$http', '$timeout', 'utils', 'globals', 'model', 'notifications', 'player', 'archive', 'json', function($scope, $rootScope, $location, $routeParams, $http, $timeout, utils, globals, model, notifications, player, archive, json){ 'use strict'; @@ -179,4 +179,4 @@ angular.module('jamstash.archive.ctrl', ['jamstash.archive.service']) $scope.addSavedCollection($routeParams.artist); } /* End Startup */ -}]); \ No newline at end of file +}]); diff --git a/app/common/main-controller.js b/app/common/main-controller.js index bf0f52d..0b8c594 100644 --- a/app/common/main-controller.js +++ b/app/common/main-controller.js @@ -1,5 +1,5 @@ angular.module('JamStash') -.controller('AppCtrl', ['$scope', '$rootScope', '$document', '$window', '$location', '$cookieStore', '$http', 'utils', 'globals', 'model', 'notifications', 'player', +.controller('AppController', ['$scope', '$rootScope', '$document', '$window', '$location', '$cookieStore', '$http', 'utils', 'globals', 'model', 'notifications', 'player', function($scope, $rootScope, $document, $window, $location, $cookieStore, $http, utils, globals, model, notifications, player) { 'use strict'; diff --git a/app/index.html b/app/index.html index 5877093..25c800f 100755 --- a/app/index.html +++ b/app/index.html @@ -21,7 +21,7 @@ - +