X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/5def52b0f6322414eb2a8f554b85e1320d230b2c..69822fd215cb15e1bb017f1af6f0a185f62a31e2:/js/common.js diff --git a/js/common.js b/js/common.js index f25a1595f..797619448 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) { @@ -41,7 +41,6 @@ function set_longdescription_window(input_name) { "action=set_longdescription&" + "login=" + encodeURIComponent(document.getElementsByName("login")[0].value)+ "&"+ "password=" + encodeURIComponent(document.getElementsByName("password")[0].value) + "&" + - "path=" + encodeURIComponent(document.getElementsByName("path")[0].value) + "&" + "longdescription=" + escape(document.getElementsByName(input_name)[0].value) + "&" + "input_name=" + escape(input_name) + "&" window.open(url, "_new_generic", parm); @@ -80,6 +79,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");