diff --git a/chrome/content/zotero/xpcom/collectionTreeView.js b/chrome/content/zotero/xpcom/collectionTreeView.js index d4db7c8a5..22fd8bf05 100644 --- a/chrome/content/zotero/xpcom/collectionTreeView.js +++ b/chrome/content/zotero/xpcom/collectionTreeView.js @@ -315,7 +315,7 @@ Zotero.CollectionTreeView.prototype.reload = function() */ Zotero.CollectionTreeView.prototype.notify = function(action, type, ids) { - if (!ids || ids.length == 0) { + if ((!ids || ids.length == 0) && action != 'refresh') { return; } diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js index b84de1b75..0f1ae4e26 100644 --- a/chrome/content/zotero/xpcom/zotero.js +++ b/chrome/content/zotero/xpcom/zotero.js @@ -1389,14 +1389,14 @@ Zotero.Prefs = new function(){ Zotero.Commons.enabled = true; Zotero.Commons.accessKey = xml.setting.(@id == 'commons-accessKey').toString(); Zotero.Commons.secretKey = xml.setting.(@id == 'commons-secretKey').toString(); - ZoteroPane.collectionsView.refresh(); } else if (commonsEnable == 'false') { Zotero.Commons.enabled = false; Zotero.Commons.accessKey = ''; Zotero.Commons.secretKey = ''; - ZoteroPane.collectionsView.refresh(); } + // This is kind of a hack + Zotero.Notifier.trigger('refresh', 'collection', []); }