BUG 9268 The date field no validate numbers the keypad SOLVED

- I add validate to date field
- I add validate range of code ascii to keypad
This commit is contained in:
Brayan Osmar Pereyra Suxo
2012-06-14 11:08:22 -04:00
parent 47338ebaed
commit f954e7d626

View File

@@ -1140,8 +1140,8 @@ function G_Text( form, element, name)
return true;
break;
default:
if ( (me.mType == 'currency') || (me.mType == 'percentage') || (me.validate == 'Real') || (me.validate == 'Int') ) {
if ( (pressKey >= 48 && pressKey <= 57) || (pressKey == 109 || pressKey == 190 || pressKey == 188) ) {
if ( (me.mType == 'date') || (me.mType == 'currency') || (me.mType == 'percentage') || (me.validate == 'Real') || (me.validate == 'Int') ) {
if ( (pressKey >= 96 && pressKey <= 105) || (pressKey >= 48 && pressKey <= 57) || (pressKey == 109 || pressKey == 190 || pressKey == 188) ) {
return true;
}
else {