- Set sync icon to spinning or not at pane/tab open

- Update file sync progress bar in tab
This commit is contained in:
Dan Stillman 2011-03-30 12:17:30 +00:00
parent 7eb1c9dd9f
commit 85235da6b3
2 changed files with 12 additions and 1 deletions

View File

@ -1804,7 +1804,8 @@ Zotero.Sync.Storage.QueueManager = new function () {
var enumerator = wm.getEnumerator("navigator:browser");
while (enumerator.hasMoreElements()) {
var win = enumerator.getNext();
var doc = win.document;
if (!win.ZoteroPane) continue;
var doc = win.ZoteroPane.document;
//
// TODO: Move to overlay.js?

View File

@ -405,6 +405,16 @@ var ZoteroPane = new function()
}, 1000);
}
// Set sync icon to spinning or not
//
// We don't bother setting an error state at open
if (Zotero.Sync.Server.syncInProgress || Zotero.Sync.Storage.syncInProgress) {
Zotero.Sync.Runner.setSyncIcon('animate');
}
else {
Zotero.Sync.Runner.setSyncIcon();
}
return true;
}