mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
8cf4986397
commit
ac316f6c1d
@ -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…
Reference in New Issue
Block a user