diff --git a/chrome/content/zotero/xpcom/collectionTreeView.js b/chrome/content/zotero/xpcom/collectionTreeView.js index cfc611d164..9cc25a6951 100644 --- a/chrome/content/zotero/xpcom/collectionTreeView.js +++ b/chrome/content/zotero/xpcom/collectionTreeView.js @@ -169,16 +169,7 @@ Zotero.CollectionTreeView.prototype.notify = function(action, type, ids) var madeChanges = false; - if (action == 'refresh') { - switch (type) { - case 'share': - this.reload(); - this.rememberSelection(savedSelection); - break; - } - } - - else if(action == 'delete') { + if (action == 'delete') { //Since a delete involves shifting of rows, we have to do it in order //sort the ids by row @@ -222,8 +213,9 @@ Zotero.CollectionTreeView.prototype.notify = function(action, type, ids) for (var i=0; i; + var collectionIDHash = {}; + + for (var i=0; i