mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00: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;
|
JS;
|
||||||
|
//fix for the problem with more than one form on a page.
|
||||||
Requirements::customScript($jsFunc, 'func_validateEmailField');
|
Requirements::customScript($jsFunc, 'func_validateEmailField' .'_' . $formID);
|
||||||
|
|
||||||
//return "\$('$formID').validateEmailField('$this->name');";
|
//return "\$('$formID').validateEmailField('$this->name');";
|
||||||
return <<<JS
|
return <<<JS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user