diff --git a/chrome/chromeFiles/content/scholar/folderTreeView.js b/chrome/chromeFiles/content/scholar/folderTreeView.js index 6175c458b..74548b1a5 100644 --- a/chrome/chromeFiles/content/scholar/folderTreeView.js +++ b/chrome/chromeFiles/content/scholar/folderTreeView.js @@ -60,10 +60,10 @@ Scholar.FolderTreeView.prototype.notify = function(action, type, ids) } else if(action == 'add' && row == null) { - var item = Scholar.Items.get(ids[i]); + var item = Scholar.Collections.get(ids[i]); - this._showItem(item,this.rowCount); - this._treebox.rowCountChanged(this.rowCount,1); + this._showItem(new Scholar.ItemGroup('collection',item), 0, this.rowCount); + this._treebox.rowCountChanged(this.rowCount-1,1); madeChanges = true; } @@ -216,18 +216,15 @@ Scholar.FolderTreeView.prototype.deleteSelection = function() this._treebox.beginUpdateBatch(); for (var i=0; i