Forms: added the possibility to specify forbidden values + message to explain the issue(toolip) (fiwed a bug on the previous implementation, causing a javascript error, hence a stopper regression due to missing event binds)

SVN:trunk[2795]
This commit is contained in:
Romain Quetiez
2013-07-09 09:09:49 +00:00
parent a9ad236439
commit ebf08345af

View File

@@ -258,7 +258,10 @@ function ValidateWithPattern(sFieldId, bMandatory, sPattern, sFormId, aForbidden
else
{
$('#v_'+sFieldId).removeClass('ui-state-error');
$('#'+sFieldId).tooltip('close');
if ($('#'+sFieldId).data('uiTooltip'))
{
$('#'+sFieldId).tooltip('close');
}
$('#'+sFieldId).removeAttr('title');
// Remove the element from the array
iFieldIdPos = oFormValidation[sFormId].indexOf(sFieldId);