From 3ad618f6dfb717be7b587b0bacc4a0b7953968b5 Mon Sep 17 00:00:00 2001 From: David Norton Date: Mon, 22 May 2006 18:51:22 +0000 Subject: [PATCH] New editing pane. Lots of smaller bugs. ScholarLocalizedStrings moved out of sidebar.js and into Scholar.LocalizedStrings Rudimentary creator adding/editing. lots of things to work on, because it doesn't work. --- .../chromeFiles/content/scholar/editpane.js | 155 ++++++++++++++++++ .../chromeFiles/content/scholar/editpane.xul | 41 +++++ chrome/chromeFiles/content/scholar/scholar.js | 4 +- .../chromeFiles/content/scholar/scholar.xul | 43 ++--- chrome/chromeFiles/content/scholar/sidebar.js | 69 +------- .../chromeFiles/content/scholar/sidebar.xul | 6 - .../locale/en-US/scholar/scholar.properties | 7 +- .../skin/default/scholar/scholar.css | 4 + 8 files changed, 238 insertions(+), 91 deletions(-) create mode 100644 chrome/chromeFiles/content/scholar/editpane.js create mode 100644 chrome/chromeFiles/content/scholar/editpane.xul diff --git a/chrome/chromeFiles/content/scholar/editpane.js b/chrome/chromeFiles/content/scholar/editpane.js new file mode 100644 index 0000000000..ee16505df9 --- /dev/null +++ b/chrome/chromeFiles/content/scholar/editpane.js @@ -0,0 +1,155 @@ +Scholar.EditPane = new function() +{ + var _editpane; + var _dynamicFields; + var _dynamicCreators; + var _itemBeingEdited; + var _creatorTypes = Scholar.CreatorTypes.getTypes(); + + this.init = init; + this.editItem = editItem; + this.close = close; + this.addCreator = addCreator; + + function init() + { + _editpane = document.getElementById('editpane'); + _dynamicFields = document.getElementById('editpane-dynamic-fields'); + _dynamicCreators = document.getElementById('editpane-dynamic-creators'); + + return true; + } + + function editItem(thisItem) + { + + _editpane.hidden = false; + + removeDynamicRows(_dynamicFields); + var fieldNames = getFullFieldList(thisItem); + + for(var i = 0; i + + + + + +