www

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

commit f0c4eec238944ab0961cef27fed230b48a70052e
parent 02fd1f89b69e3f39abab55792f615fdb4f8df7d1
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon,  1 Sep 2008 08:09:37 +0000

Fix sync icon error handling (trunk and SP2 tag)


Diffstat:
Mchrome/content/zotero/overlay.xul | 2+-
Mchrome/content/zotero/xpcom/storage.js | 6+++---
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/chrome/content/zotero/overlay.xul b/chrome/content/zotero/overlay.xul @@ -342,7 +342,7 @@ <toolbarbutton id="zotero-tb-sync" tooltip="_child" oncommand="Zotero.Sync.Runner.sync()"> <tooltip - onpopupshowing="if (Zotero.Sync.Server.lastSyncError) { this.firstChild.nextSibling.value = 'Last error: ' + Zotero.Sync.Server.lastSyncError; return; } this.firstChild.nextSibling.value = 'Last sync: ' + (Zotero.Sync.Server.lastLocalSyncTime ? new Date(Zotero.Sync.Server.lastLocalSyncTime * 1000).toLocaleString() : 'Not yet synced')" + onpopupshowing="if (Zotero.Sync.Runner.lastSyncError) { this.firstChild.nextSibling.value = 'Last error: ' + Zotero.Sync.Runner.lastSyncError; return; } this.firstChild.nextSibling.value = 'Last sync: ' + (Zotero.Sync.Server.lastLocalSyncTime ? new Date(Zotero.Sync.Server.lastLocalSyncTime * 1000).toLocaleString() : 'Not yet synced')" noautohide="true"><!-- TODO: localize --> <label value="Sync with Zotero Server"/> <label id="zotero-last-sync-time"/> diff --git a/chrome/content/zotero/xpcom/storage.js b/chrome/content/zotero/xpcom/storage.js @@ -1964,13 +1964,13 @@ Zotero.Sync.Storage = new function () { _syncInProgress = false; Zotero.DB.rollbackAllTransactions(); - Zotero.Sync.Server.setSyncIcon('error'); + Zotero.Sync.Runner.setSyncIcon('error'); if (e.name) { - Zotero.Sync.Server.lastSyncError = e.name; + Zotero.Sync.Runner.lastSyncError = e.name; } else { - Zotero.Sync.Server.lastSyncError = e; + Zotero.Sync.Runner.lastSyncError = e; } Zotero.debug(e, 1); Zotero.Sync.Runner.reset();