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 + + + + + +