negative numbers

This commit is contained in:
Roland Gruber 2013-08-22 16:43:18 +00:00
parent 1279c8d4bc
commit 95dca33041
1 changed files with 4 additions and 0 deletions

View File

@ -49,6 +49,10 @@ setlanguage();
"numeric": {
"regex": /^[0-9]+$/,
"alertText": "<?php echo _('Please enter a number.') ?>"
},
"numericWithNegative": {
"regex": /^[-]?[0-9]+$/,
"alertText": "<?php echo _('Please enter a number.') ?>"
}
};
}