1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-26 11:59:02 +02:00

do not try to update offline data when in offline mode

This commit is contained in:
Andrew Dolgov 2009-02-04 17:45:58 +03:00
parent d07f08e824
commit 823ff6aa2e
2 changed files with 4 additions and 4 deletions

View File

@ -551,10 +551,11 @@ function update_offline_data(stage) {
try { try {
if (!stage) stage = 0; if (!stage) stage = 0;
if (offline_mode) return;
debug("update_offline_data: stage " + stage); debug("update_offline_data: stage " + stage);
// notify_progress("Loading, please wait... (" + stage +")", true); notify_progress("Updating offline data... (" + stage +")", true);
var query = "backend.php?op=rpc&subop=download&stage=" + stage; var query = "backend.php?op=rpc&subop=download&stage=" + stage;
@ -727,9 +728,6 @@ function init_gears() {
db.execute("DELETE FROM cache WHERE id LIKE 'F:%' OR id LIKE 'C:%'"); db.execute("DELETE FROM cache WHERE id LIKE 'F:%' OR id LIKE 'C:%'");
window.setTimeout("update_offline_data(0)", 100);
} }
cache_expire(); cache_expire();

View File

@ -553,6 +553,8 @@ function init_second_stage() {
resize_headlines(); resize_headlines();
window.setTimeout("update_offline_data(0)", 100);
} catch (e) { } catch (e) {
exception_error("init_second_stage", e); exception_error("init_second_stage", e);
} }