X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/d1ad55901bdcedbdce2633d23204386d8c7798e1..637be9d46084bc19a08b91bc13ae541a6c36f9ef:/js/common.js?ds=sidebyside 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");