From f954e7d626c23d91c02d7b8f119404a8ed3aec2f Mon Sep 17 00:00:00 2001 From: Brayan Osmar Pereyra Suxo Date: Thu, 14 Jun 2012 11:08:22 -0400 Subject: [PATCH] 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 --- gulliver/js/form/core/form.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gulliver/js/form/core/form.js b/gulliver/js/form/core/form.js index 150a34d6a..321fff4b4 100755 --- a/gulliver/js/form/core/form.js +++ b/gulliver/js/form/core/form.js @@ -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 {