diff options
Diffstat (limited to 'js/build/app.js')
-rw-r--r-- | js/build/app.js | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/js/build/app.js b/js/build/app.js index eccd56cac..6e7e41769 100644 --- a/js/build/app.js +++ b/js/build/app.js @@ -339,7 +339,7 @@ var $__app__ = (function() { feed.deleted = false; }); this.removeFeed = (function(feed) { - console.log(feed); + console.log('remove ' + feed); }); this.deleteFolder = (function(folderName) { console.log(folderName); @@ -1372,6 +1372,20 @@ var $__app__ = (function() { }) }; }])); + app.directive('newsTimeout', (["$timeout", function($timeout) { + 'use strict'; + return { + restrict: 'A', + scope: {'newsTimeout': '&'}, + link: (function(scope) { + var seconds = 7; + var timer = $timeout(scope.newsTimeout, seconds * 1000); + scope.$on('$destroy', (function() { + $timeout.cancel(timer); + })); + }) + }; + }])); app.directive('newsTitleUnreadCount', (["$window", function($window) { 'use strict'; var baseTitle = $window.document.title; |