BUGFIX #3946 ilyabr: Allow multiple forms containing EmailFields on the same page.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@78565 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2009-06-08 00:41:06 +00:00
parent 8cf4986397
commit ac316f6c1d

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