www

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

commit c0091db15ea4b7a030595fa3a95704c633ea4fe8
parent 0e45473992a51d693b6120bd984d158a4555eea7
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu,  2 Sep 2010 16:48:48 +0000

Fixes #1719, Autosync suspension needs to persist

Don't auto-sync on Zotero pane open if a manual sync is required


Diffstat:
Mchrome/content/zotero/overlay.js | 11++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/chrome/content/zotero/overlay.js b/chrome/content/zotero/overlay.js @@ -434,9 +434,14 @@ var ZoteroPane = new function() // Auto-sync on pane open if (Zotero.Prefs.get('sync.autoSync') && Zotero.Sync.Server.enabled && !Zotero.Sync.Server.syncInProgress && !Zotero.Sync.Storage.syncInProgress) { - setTimeout(function () { - Zotero.Sync.Runner.sync(true); - }, 1000); + if (Zotero.Sync.Server.manualSyncRequired) { + Zotero.debug('Manual sync required -- skipping auto-sync', 4); + } + else { + setTimeout(function () { + Zotero.Sync.Runner.sync(true); + }, 1000); + } } } else {