First attempt to display cover only
This commit is contained in:
@@ -1,5 +1,14 @@
|
||||
angular.module('satbd.satellite.bar', ['ui.bootstrap','ngAnimate']);
|
||||
|
||||
angular.module('satbd.satellite.bar').controller('GlobalCtrl', function($scope) {
|
||||
$scope.location = ''
|
||||
$scope.isActive = function(location) {
|
||||
return $scope.location == location
|
||||
};
|
||||
|
||||
|
||||
});
|
||||
|
||||
angular.module('satbd.satellite.bar').controller('NavbarCollapseCtrl', function ($scope, $uibModal) {
|
||||
$scope.isCollapsed = true;
|
||||
$scope.openModal = function (size) {
|
||||
@@ -19,17 +28,18 @@ angular.module('satbd.satellite.bar').controller('HelpInstanceCtrl', function($s
|
||||
};
|
||||
});
|
||||
|
||||
angular.module('satbd.satellite.bar').controller('ResultsCtrl', function($scope, $http,$log) {
|
||||
$scope.albumIDs = [];
|
||||
angular.module('satbd.satellite.bar').controller('RecentCtrl', function($scope, $http,$log) {
|
||||
$scope.albumIDs = [ ];
|
||||
$http.get('/api/recents').success(function(data){
|
||||
for (var i = 0; i < 30; i++) {
|
||||
for (var i = 0; i < 10; i++) {
|
||||
$scope.albumIDs.push(data[i])
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
angular.module('satbd.satellite.bar').controller('AlbumCtrl', function($scope, $http) {
|
||||
angular.module('satbd.satellite.bar').controller('RecentAlbumCtrl', function($scope, $http) {
|
||||
$scope.init_by_id = function(id) {
|
||||
$http.get('api/albums/'+ id).success(function (data) {
|
||||
$scope.album = data;
|
||||
|
||||
Reference in New Issue
Block a user