From c1241b608a0eba10ba1ffb06e5c085fb213a178f Mon Sep 17 00:00:00 2001 From: David Norton Date: Thu, 1 Jun 2006 16:40:43 +0000 Subject: [PATCH] Removed organizeWindow.xul/js (All this functionality is in overlay) Removed view.xul/js/css (see above) Enabled deletion (exception when deleting from library) --- .../content/scholar/itemTreeView.js | 13 +- .../content/scholar/metadataPane.js | 4 +- .../content/scholar/metadataPane.xul | 2 +- .../content/scholar/organizeWindow.js | 108 ----------- .../content/scholar/organizeWindow.xul | 179 ------------------ chrome/chromeFiles/content/scholar/overlay.js | 33 +++- .../chromeFiles/content/scholar/overlay.xul | 21 +- chrome/chromeFiles/content/scholar/view.js | 48 ----- chrome/chromeFiles/content/scholar/view.xul | 26 --- .../skin/default/scholar/overlay.css | 43 +++++ .../chromeFiles/skin/default/scholar/view.css | 41 ---- 11 files changed, 106 insertions(+), 412 deletions(-) delete mode 100644 chrome/chromeFiles/content/scholar/organizeWindow.js delete mode 100644 chrome/chromeFiles/content/scholar/organizeWindow.xul delete mode 100644 chrome/chromeFiles/content/scholar/view.js delete mode 100644 chrome/chromeFiles/content/scholar/view.xul delete mode 100644 chrome/chromeFiles/skin/default/scholar/view.css diff --git a/chrome/chromeFiles/content/scholar/itemTreeView.js b/chrome/chromeFiles/content/scholar/itemTreeView.js index 3a4e48df2e..fbf9933699 100644 --- a/chrome/chromeFiles/content/scholar/itemTreeView.js +++ b/chrome/chromeFiles/content/scholar/itemTreeView.js @@ -100,8 +100,11 @@ Scholar.ItemTreeView.prototype.deleteSelection = function() this._treebox.beginUpdateBatch(); for (var i=0; i - + diff --git a/chrome/chromeFiles/content/scholar/organizeWindow.js b/chrome/chromeFiles/content/scholar/organizeWindow.js deleted file mode 100644 index 1fb45ce511..0000000000 --- a/chrome/chromeFiles/content/scholar/organizeWindow.js +++ /dev/null @@ -1,108 +0,0 @@ -var foldersView; -var itemsView; -var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.interfaces.nsIPromptService); - -function init() -{ - foldersView = new Scholar.TreeView(0); //pass params here? - document.getElementById('folders-tree').view = foldersView; - itemsView = new Scholar.ItemTreeView(0); - document.getElementById('items-tree').view = itemsView; - - var addMenu = document.getElementById('tb-add').firstChild; - var itemTypes = Scholar.ItemTypes.getTypes(); - for(var i = 0; i 0 && confirm("Are you sure you want to delete the selected items?")) - itemsView.deleteSelection(); -} - -function search() -{ - //TO DO: reload items tree with a search instead of a root folder - alert(document.getElementById('tb-search').value); -} \ No newline at end of file diff --git a/chrome/chromeFiles/content/scholar/organizeWindow.xul b/chrome/chromeFiles/content/scholar/organizeWindow.xul deleted file mode 100644 index 03118dc204..0000000000 --- a/chrome/chromeFiles/content/scholar/organizeWindow.xul +++ /dev/null @@ -1,179 +0,0 @@ - - - - - - - - - - -