- 'Add...' butotn is now grayed when there is nothing to Add

- Better handling of AllowedValues, supporting autocompletes
- Cleanup unused code in wizard.utils.js

SVN:trunk[151]
This commit is contained in:
Denis Flaven
2009-09-11 21:23:24 +00:00
parent e4f4b66722
commit 61df1d7bab
6 changed files with 22 additions and 29 deletions

View File

@@ -24,22 +24,6 @@ function AddObject(sClass, sId, sExtKeyToRemote)
// Display the additional dialog
$('#LinkDlg_'+sId).jqmShow();
return;
// TO BE REWRITTEN
var sRelatedObjectIds = new String($('#related_object_ids_'+sId).val());
if (sRelatedObjectIds.length > 0)
{
aRelatedObjectIds = sRelatedObjectIds.split(' ');
}
else
{
aRelatedObjectIds = new Array();
}
// To do: check if the ID is not already in the list...
aRelatedObjectIds[aRelatedObjectIds.length] = sCurrentObjectId;
// Update the form & reload the list
$('#related_object_ids').val(aRelatedObjectIds.join(' '));
UpdateObjectList(sClass, sExtKeyToRemote);
}
function ManageObjects(sTitle, sClass, sId, sExtKeyToRemote)
@@ -158,6 +142,5 @@ function GetObjectIds(sInputId, sExtKeyToRemote)
}
}
return aLinkedIds;
}