mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Including NumericField?.js in NumericField?, was previously extracted from CalendarDateField?.js (merged from branches/2.3-nzct)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@82067 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
cc11d6e2d4
commit
e6ade3d64b
@ -7,6 +7,13 @@
|
||||
*/
|
||||
class NumericField extends TextField{
|
||||
|
||||
function Field() {
|
||||
$html = parent::Field();
|
||||
Requirements::javascript(SAPPHIRE_DIR . 'javascript/NumericField.js');
|
||||
|
||||
return $html;
|
||||
}
|
||||
|
||||
function jsValidation() {
|
||||
$formID = $this->form->FormName();
|
||||
$error = _t('NumericField.VALIDATIONJS', 'is not a number, only numbers can be accepted for this field');
|
||||
|
Loading…
Reference in New Issue
Block a user