diff options
author | Andrew Dolgov <[email protected]> | 2009-02-04 17:45:58 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2009-02-04 17:45:58 +0300 |
commit | 823ff6aa2e6c38ee45c114cfb5b064cc52e9b972 (patch) | |
tree | d11135de8b44a5f30edc558e6c2335f555c17b31 /offline.js | |
parent | d07f08e824b7d524021c31d58841a17bfd5d386f (diff) |
do not try to update offline data when in offline mode
Diffstat (limited to 'offline.js')
-rw-r--r-- | offline.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/offline.js b/offline.js index 53a005b83..620988c89 100644 --- a/offline.js +++ b/offline.js @@ -551,10 +551,11 @@ function update_offline_data(stage) { try { if (!stage) stage = 0; + if (offline_mode) return; 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; @@ -727,9 +728,6 @@ function init_gears() { db.execute("DELETE FROM cache WHERE id LIKE 'F:%' OR id LIKE 'C:%'"); - - window.setTimeout("update_offline_data(0)", 100); - } cache_expire(); |