From 8d50874d6b483c76ac88babad993d3de93c1be80 Mon Sep 17 00:00:00 2001 From: David Norton Date: Mon, 19 Jun 2006 15:45:32 +0000 Subject: [PATCH] [interface] You can now change an item's type via menu. --- .../chromeFiles/content/scholar/itemPane.js | 20 +++++++++++++++++++ .../chromeFiles/content/scholar/itemPane.xul | 3 +++ chrome/chromeFiles/content/scholar/overlay.js | 11 ---------- .../chromeFiles/content/scholar/overlay.xul | 5 +---- 4 files changed, 24 insertions(+), 15 deletions(-) diff --git a/chrome/chromeFiles/content/scholar/itemPane.js b/chrome/chromeFiles/content/scholar/itemPane.js index 0191211b66..cb413c0c9f 100644 --- a/chrome/chromeFiles/content/scholar/itemPane.js +++ b/chrome/chromeFiles/content/scholar/itemPane.js @@ -13,6 +13,7 @@ ScholarItemPane = new function() this.onLoad = onLoad; this.viewItem = viewItem; + this.changeTypeTo = changeTypeTo; this.addCreatorRow = addCreatorRow; this.removeCreator = removeCreator; this.showEditor = showEditor; @@ -27,6 +28,7 @@ ScholarItemPane = new function() function onLoad() { _dynamicFields = document.getElementById('editpane-dynamic-fields'); + _itemTypeMenu = document.getElementById('editpane-type-menu'); _creatorTypeMenu = document.getElementById('creatorTypeMenu'); _notesMenu = document.getElementById('scholar-notes-menu'); _notesField = document.getElementById('scholar-notes-field'); @@ -43,6 +45,10 @@ ScholarItemPane = new function() _creatorTypeMenu.appendChild(menuitem); } + var itemTypes = Scholar.ItemTypes.getTypes(); + for(var i = 0; i + + + diff --git a/chrome/chromeFiles/content/scholar/overlay.js b/chrome/chromeFiles/content/scholar/overlay.js index cd99dcb202..5da4ef0584 100644 --- a/chrome/chromeFiles/content/scholar/overlay.js +++ b/chrome/chromeFiles/content/scholar/overlay.js @@ -35,17 +35,6 @@ var ScholarPane = new function() //select Library collectionsView.selection.select(0); - - //Create the add menu with each item type - var addMenu = document.getElementById('tb-add').firstChild; - var itemTypes = Scholar.ItemTypes.getTypes(); - for(var i = 0; i - - - - +