diff --git a/chrome/chromeFiles/content/scholar/itemTreeView.js b/chrome/chromeFiles/content/scholar/itemTreeView.js index 17d31df99b..e84216528f 100644 --- a/chrome/chromeFiles/content/scholar/itemTreeView.js +++ b/chrome/chromeFiles/content/scholar/itemTreeView.js @@ -156,32 +156,38 @@ Scholar.ItemTreeView.prototype.getCollectionID = function() } //CALLED BY DATA LAYER ON CHANGE: -Scholar.ItemTreeView.prototype.notify = function(action, type, id) +Scholar.ItemTreeView.prototype.notify = function(action, type, ids) { - var row = this._itemRowMap[id]; - if(action == 'remove' && row) - { - this._hideItem(row); - this._treebox.rowCountChanged(row,-1); - } - else if(action == 'modify' && row) - { - this._treebox.invalidateRow(row) - } - else if(action == 'add' && !row) - { - var item = Scholar.Items.get(id); - - if(this._itemGroup.isLibrary() || item.inCollection(this.getCollectionID())) + ids = Scholar.flattenArguments(ids); + + for (var i=0, len=ids.length; i