summaryrefslogtreecommitdiff
path: root/offline.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-02-16 13:16:05 +0300
committerAndrew Dolgov <[email protected]>2009-02-16 13:16:05 +0300
commit65c0779b7750e1c80827d852d97b8ca233f7454e (patch)
tree903d3e5c1856863a6539031383864a3b23d825e1 /offline.js
parentc16694c84810e1a59da1a411e5c5aa385932f47d (diff)
offline: tweak syncing
Diffstat (limited to 'offline.js')
-rw-r--r--offline.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/offline.js b/offline.js
index a509cebb0..2a4466797 100644
--- a/offline.js
+++ b/offline.js
@@ -1618,10 +1618,12 @@ function toggleOfflineModeInfo() {
}
}
-function offlineDownloadStart() {
+function offlineDownloadStart(stage) {
try {
+ if (!stage) stage = 0;
+
if (db && !sync_in_progress && getInitParam("offline_enabled") == "1") {
- window.setTimeout("update_offline_data(0)", 100);
+ window.setTimeout("update_offline_data("+stage+")", 100);
}
} catch (e) {
exception_error("offlineDownloadStart", e);