X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/5def52b0f6322414eb2a8f554b85e1320d230b2c..637be9d46084bc19a08b91bc13ae541a6c36f9ef:/js/common.js diff --git a/js/common.js b/js/common.js index f25a1595f..15a507113 100644 --- a/js/common.js +++ b/js/common.js @@ -7,7 +7,7 @@ function setupPoints(numberformat, wrongFormat) { else { thpoint = null; } - wrongNumberformat = wrongFormat + " ( " + numberformat + " ) "; + wrongNumberFormat = wrongFormat + " ( " + numberformat + " ) "; } function setupDateFormat(setDateFormat, setWrongDateFormat) { @@ -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");