summaryrefslogtreecommitdiffstats
path: root/js/app/app.coffee
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-04-20 16:11:56 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-04-20 16:11:56 +0200
commit43448880561846bf0c71f0b8836500a3cb8017c9 (patch)
tree0ec1e354f1662782e355d3c07cc6a9a0523bec2d /js/app/app.coffee
parentf15d7d26e51503edc4a41edfdddee92a2aff8a19 (diff)
update all feeds in one go and dont trigger serverside update anymore on feedupdate, fix #90
Diffstat (limited to 'js/app/app.coffee')
-rw-r--r--js/app/app.coffee8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/app/app.coffee b/js/app/app.coffee
index 264078b57..bf2ab08ec 100644
--- a/js/app/app.coffee
+++ b/js/app/app.coffee
@@ -26,7 +26,7 @@ angular.module('News', ['OC', 'ui']).config ($provide) ->
$provide.value 'Config', config =
markReadTimeout: 500
scrollTimeout: 500
- feedUpdateInterval: 600000
+ feedUpdateInterval: 1000*60*10
itemBatchSize: 20
# the autoPageFactor defines how many heights of the box must be left
# before it starts autopaging e.g. if it was 2, then it will start
@@ -34,13 +34,13 @@ angular.module('News', ['OC', 'ui']).config ($provide) ->
autoPageFactor: 6
-angular.module('News').run ['Persistence', 'Config', 'FeedBusinessLayer',
-(Persistence, Config, FeedBusinessLayer) ->
+angular.module('News').run ['Persistence', 'Config',
+(Persistence, Config) ->
Persistence.init()
setInterval ->
- FeedBusinessLayer.updateFeeds()
+ Persistence.getAllFeeds()
, Config.feedUpdateInterval
]