diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-12 12:25:58 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-04-12 12:25:58 +0200 |
commit | e8767f75116ff7ef2b7a349480151c9f66bbade0 (patch) | |
tree | 5879fe01fa8113a299daaba4d2c6cfa84769a104 /js/app/app.coffee | |
parent | e9eaa93826c75097d95d21a556e1b1aae6610bcd (diff) |
implement clientside update requests, fix #27
Diffstat (limited to 'js/app/app.coffee')
-rw-r--r-- | js/app/app.coffee | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/js/app/app.coffee b/js/app/app.coffee index 82a839c8c..9a8e54d6a 100644 --- a/js/app/app.coffee +++ b/js/app/app.coffee @@ -26,12 +26,18 @@ angular.module('News', ['OC', 'ui']).config ($provide) -> $provide.value 'Config', config = markReadTimeout: 500 scrollTimeout: 500 - feedUpdateInterval: 6000000 + feedUpdateInterval: 600000 itemBatchSize: 20 -angular.module('News').run ['Persistence', (Persistence) -> +angular.module('News').run ['Persistence', 'Config', 'FeedBl', +(Persistence, Config, FeedBl) -> + Persistence.init() + + setInterval -> + FeedBl.updateFeeds() + , Config.feedUpdateInterval ] |