fix build failure

This commit is contained in:
Athou
2013-04-24 13:16:53 +02:00
parent cde844b4a5
commit 1504924a76

View File

@@ -22,7 +22,7 @@ module.directive('ngBlur', function() {
}; };
}); });
module.directive('scrollTo', ['$timeout', function($timeout) { module.directive('scrollTo', [ '$timeout', function($timeout) {
return { return {
restrict : 'A', restrict : 'A',
link : function(scope, element, attrs) { link : function(scope, element, attrs) {
@@ -50,9 +50,9 @@ module.directive('scrollTo', ['$timeout', function($timeout) {
}); });
} }
}; };
}]); } ]);
module.directive('recursive', ['$compile', function($compile) { module.directive('recursive', [ '$compile', function($compile) {
return { return {
restrict : 'E', restrict : 'E',
priority : 100000, priority : 100000,
@@ -69,21 +69,21 @@ module.directive('recursive', ['$compile', function($compile) {
}; };
} }
}; };
}]); } ]);
module.directive('category', [function() { module.directive('category', [ function() {
return { return {
scope : { scope : {
node : '=', node : '=',
selectedType : '=', selectedType : '=',
selectedId : '=', selectedId : '=',
unreadCount : '&', unreadCount : '&'
}, },
restrict : 'E', restrict : 'E',
replace : true, replace : true,
templateUrl : 'directives/category.html', templateUrl : 'directives/category.html',
controller : function($scope, $state, $dialog, FeedService, CategoryService, controller : function($scope, $state, $dialog, FeedService,
SettingsService) { CategoryService, SettingsService) {
$scope.settingsService = SettingsService; $scope.settingsService = SettingsService;
$scope.unsubscribe = function(subscription) { $scope.unsubscribe = function(subscription) {
var title = 'Unsubscribe'; var title = 'Unsubscribe';
@@ -109,9 +109,11 @@ module.directive('category', [function() {
} }
}); });
}; };
$scope.formatCategoryName = function(category) { $scope.formatCategoryName = function(category) {
var count = $scope.unreadCount({category:category}); var count = $scope.unreadCount({
category : category
});
var label = category.name; var label = category.name;
if (count > 0) { if (count > 0) {
label = label + ' (' + count + ')'; label = label + ' (' + count + ')';
@@ -126,7 +128,7 @@ module.directive('category', [function() {
} }
return label; return label;
}; };
$scope.feedClicked = function(id) { $scope.feedClicked = function(id) {
if ($scope.selectedType == 'feed' && id == $scope.selectedId) { if ($scope.selectedType == 'feed' && id == $scope.selectedId) {
$scope.$emit('emitReload'); $scope.$emit('emitReload');
@@ -207,7 +209,7 @@ module.directive('category', [function() {
}; };
} }
}; };
}]); } ]);
module.directive('spinner', function() { module.directive('spinner', function() {
return { return {