summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-02-03 22:40:27 +0300
committerAndrew Dolgov <[email protected]>2009-02-03 22:40:27 +0300
commitb548354310af4f2feb7b98daec374f36edf5512d (patch)
tree850715f956fa907a4d4b239e63aedd20ae942aea /tt-rss.js
parenta4b906ec46bc389d8fcef1b2a308c2699c7ffc04 (diff)
adjust rate limits on automatic update of offline info
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/tt-rss.js b/tt-rss.js
index b4f2d2adb..0182e8e5b 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -242,6 +242,8 @@ function updateFeedList(silent, fetch) {
debug("<b>updateFeedList</b>");
+ if (offline_mode) return render_offline_feedlist();
+
var query_str = "backend.php?op=feeds";
if (display_tags) {
@@ -1582,7 +1584,7 @@ function offline_download_parse(stage, transport) {
[id, title, has_icon]);
}
- window.setTimeout("update_offline_data("+(stage+1)+")", 50);
+ window.setTimeout("update_offline_data("+(stage+1)+")", 30*1000);
} else {
var articles = transport.responseXML.getElementsByTagName("article");
@@ -1609,10 +1611,9 @@ function offline_download_parse(stage, transport) {
}
if (articles_found > 0) {
- window.setTimeout("update_offline_data("+(stage+1)+")", 50);
+ window.setTimeout("update_offline_data("+(stage+1)+")", 60*1000);
} else {
-// notify_info("All done.");
-// closeInfoBox();
+ window.setTimeout("update_offline_data(0)", 1800*1000);
}
}
@@ -1647,6 +1648,7 @@ function update_offline_data(stage) {
new Ajax.Request(query, {
onComplete: function(transport) {
offline_download_parse(stage, transport);
+ debug("update_offline_data: done " + stage);
} });
} catch (e) {