commit e82968304fcb6b3f203bb015dfae7c56009d2cc8 parent 1cb446457574c17e9616d64a6651d8fa2cb84a67 Author: Simon Kornblith <simon@simonster.com> Date: Sat, 19 Feb 2011 00:58:08 +0000 fix sync icon spinning in Zotero tab Diffstat:
| M | chrome/content/zotero/xpcom/sync.js | | | 5 | +++-- |
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/xpcom/sync.js b/chrome/content/zotero/xpcom/sync.js @@ -815,8 +815,9 @@ Zotero.Sync.Runner = new function () { while (enumerator.hasMoreElements()) { var win = enumerator.getNext(); - var warning = win.document.getElementById('zotero-tb-sync-warning'); - var icon = win.document.getElementById('zotero-tb-sync'); + if(!win.ZoteroPane) continue; + var warning = win.ZoteroPane.document.getElementById('zotero-tb-sync-warning'); + var icon = win.ZoteroPane.document.getElementById('zotero-tb-sync'); if (status == 'warning' || status == 'error') { icon.setAttribute('status', '');