Closes #45, reorder item fields
This commit is contained in:
parent
cd4dd3bd92
commit
3414004cb0
1 changed files with 3 additions and 2 deletions
|
@ -88,11 +88,12 @@ ScholarItemPane = new function()
|
|||
if(_itemTypeMenu.firstChild.childNodes[i].value == _itemBeingEdited.getType())
|
||||
_itemTypeMenu.selectedIndex = i;
|
||||
|
||||
var fieldNames = new Array("title","dateAdded","dateModified");
|
||||
var fieldNames = new Array("title");
|
||||
var fields = Scholar.ItemFields.getItemTypeFields(_itemBeingEdited.getField("itemTypeID"));
|
||||
for(var i = 0; i<fields.length; i++)
|
||||
fieldNames.push(Scholar.ItemFields.getName(fields[i]));
|
||||
|
||||
fieldNames.push("dateAdded","dateModified");
|
||||
|
||||
for(var i = 0; i<fieldNames.length; i++)
|
||||
{
|
||||
var editable = (!_itemBeingEdited.isPrimaryField(fieldNames[i]) || _itemBeingEdited.isEditableField(fieldNames[i]));
|
||||
|
|
Loading…
Reference in a new issue