From 25160f38f3485069e768f84e7fa7d2adec8415bb Mon Sep 17 00:00:00 2001 From: Thomas Kasulke Date: Fri, 20 Apr 2007 10:35:14 +0000 Subject: [PATCH] =?utf8?q?=C3=BCberpr=C3=BCfen,=20ob=20ein=20datums-value?= =?utf8?q?=20leer=20ist=20eingepflegt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- js/common.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/common.js b/js/common.js index dd0e0ec69..15a507113 100644 --- a/js/common.js +++ b/js/common.js @@ -80,6 +80,9 @@ function check_right_number_format(input_name) { } function check_right_date_format(input_name) { + if(input_name.value == "") { + return true; + } var matching = new RegExp(dateFormat.replace(/\w/g, '\\d') + "\$","ig"); if(!(dateFormat.lastIndexOf("y") == 3) && !matching.test(input_name.value)) { matching = new RegExp(dateFormat.replace(/\w/g, '\\d') + '\\d\\d\$', "ig"); -- 2.20.1