mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: fix for multiple EmailField validation on one form. Merged via r78565
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@93483 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
24cead4d33
commit
2d23990869
@ -26,8 +26,8 @@ Behaviour.register({
|
||||
}
|
||||
});
|
||||
JS;
|
||||
|
||||
Requirements::customScript($jsFunc, 'func_validateEmailField');
|
||||
//fix for the problem with more than one form on a page.
|
||||
Requirements::customScript($jsFunc, 'func_validateEmailField' .'_' . $formID);
|
||||
|
||||
//return "\$('$formID').validateEmailField('$this->name');";
|
||||
return <<<JS
|
||||
|
Loading…
Reference in New Issue
Block a user