www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 63c90f2ae71c9143ebf7f3178720a97b89a97e51
parent e45ee36117b2c5fdb4d84db539dede53aba73171
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sat, 15 Nov 2008 21:01:23 +0000

Display error icon and message on sync attempt if browser is offline


Diffstat:
Mchrome/content/zotero/xpcom/sync.js | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/xpcom/sync.js b/chrome/content/zotero/xpcom/sync.js @@ -405,6 +405,13 @@ Zotero.Sync.Runner = new function () { } this.sync = function () { + if (Zotero.Utilities.HTTP.browserIsOffline()){ + this.lastSyncError = "Browser is offline"; // TODO: localize + this.clearSyncTimeout(); // DEBUG: necessary? + this.setSyncIcon('error'); + return false; + } + if (_running) { throw ("Sync already running in Zotero.Sync.Runner.sync()"); }