summaryrefslogtreecommitdiffstats
path: root/js/build/app.js
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-09-05 18:38:28 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-09-05 18:38:28 +0200
commit9fd26858e732e07b74760f27a1fda44d7e3c1070 (patch)
tree4c5109d90c58ec4256f993efc1fc1fad7fd3d5a9 /js/build/app.js
parent3921c654f8c5684eedd4bd081f8b94c1c7b207e5 (diff)
add timeout to feed delete message
Diffstat (limited to 'js/build/app.js')
-rw-r--r--js/build/app.js16
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;