From c4d2e77b279358dc72a96ee48ff7050ace5fccf0 Mon Sep 17 00:00:00 2001 From: David Norton Date: Mon, 5 Jun 2006 11:58:16 +0000 Subject: [PATCH] Interface: Add Collections (debugged to view properly) Interface: Delete collection now reselects correctly. --- .../content/scholar/folderTreeView.js | 19 ++++++++----------- chrome/chromeFiles/content/scholar/overlay.js | 4 +--- 2 files changed, 9 insertions(+), 14 deletions(-) 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