Preset the object creation form with values (scalars or lists) by the mean of GET arguments. E.g. .../UI.php&operation=new&class=Team&default[org_id]=161&default[member_list][-1234][id]=&default[member_list][-1234][role]=manager

SVN:trunk[1340]
This commit is contained in:
Romain Quetiez
2011-07-07 15:45:35 +00:00
parent 265ef1e1ce
commit 532912984d
9 changed files with 217 additions and 128 deletions

View File

@@ -153,7 +153,7 @@ function CheckFields(sFormId, bDisplayAlert)
// The two 'fields' below will be updated when the 'validate' event is processed
oFormErrors['err_'+sFormId] = 0; // Number of errors encountered when validating the form
oFormErrors['input_'+sFormId] = null; // First 'input' with an error, to set the focus to it
$('#'+sFormId+' :input[type!=hidden]').each( function()
$('#'+sFormId+' :input').each( function()
{
validateEventResult = $(this).trigger('validate', sFormId);
}