From 1504924a7689d2863ae1f088ca8178a23516ffb6 Mon Sep 17 00:00:00 2001 From: Athou Date: Wed, 24 Apr 2013 13:16:53 +0200 Subject: [PATCH] fix build failure --- src/main/webapp/js/directives.js | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/src/main/webapp/js/directives.js b/src/main/webapp/js/directives.js index f9e0f7c5..2f96be77 100644 --- a/src/main/webapp/js/directives.js +++ b/src/main/webapp/js/directives.js @@ -22,7 +22,7 @@ module.directive('ngBlur', function() { }; }); -module.directive('scrollTo', ['$timeout', function($timeout) { +module.directive('scrollTo', [ '$timeout', function($timeout) { return { restrict : 'A', 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 { restrict : 'E', priority : 100000, @@ -69,21 +69,21 @@ module.directive('recursive', ['$compile', function($compile) { }; } }; -}]); +} ]); -module.directive('category', [function() { +module.directive('category', [ function() { return { scope : { node : '=', selectedType : '=', selectedId : '=', - unreadCount : '&', + unreadCount : '&' }, restrict : 'E', replace : true, templateUrl : 'directives/category.html', - controller : function($scope, $state, $dialog, FeedService, CategoryService, - SettingsService) { + controller : function($scope, $state, $dialog, FeedService, + CategoryService, SettingsService) { $scope.settingsService = SettingsService; $scope.unsubscribe = function(subscription) { var title = 'Unsubscribe'; @@ -109,9 +109,11 @@ module.directive('category', [function() { } }); }; - + $scope.formatCategoryName = function(category) { - var count = $scope.unreadCount({category:category}); + var count = $scope.unreadCount({ + category : category + }); var label = category.name; if (count > 0) { label = label + ' (' + count + ')'; @@ -126,7 +128,7 @@ module.directive('category', [function() { } return label; }; - + $scope.feedClicked = function(id) { if ($scope.selectedType == 'feed' && id == $scope.selectedId) { $scope.$emit('emitReload'); @@ -207,7 +209,7 @@ module.directive('category', [function() { }; } }; -}]); +} ]); module.directive('spinner', function() { return {