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:
Will Rossiter 2009-11-25 22:59:40 +00:00 committed by Sam Minnee
parent 24cead4d33
commit 2d23990869

View File

@ -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