From: Thomas Kasulke Date: Thu, 31 May 2007 08:18:17 +0000 (+0000) Subject: Tausender-Trennzeichen werden nicht mehr überprüft. X-Git-Tag: release-2.4.3^2~223 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=c549f7c2c83e51c3a6747887bcee59d1fb145f13;p=kivitendo-erp.git Tausender-Trennzeichen werden nicht mehr überprüft. --- diff --git a/js/common.js b/js/common.js index 19821b42b..b354d3ccc 100644 --- a/js/common.js +++ b/js/common.js @@ -52,24 +52,27 @@ function set_longdescription_window(input_name) { } function check_right_number_format(input_name) { - if(thpoint) { - if(thpoint == ','){ - var thnumbers = input_name.value.split(','); - thnumbers[thnumbers.length-1] = thnumbers[thnumbers.length-1].substring((thnumbers[thnumbers.length-1].lastIndexOf(".") !== -1 ? thnumbers[thnumbers.length-1].lastIndexOf(".") : thnumbers[thnumbers.length-1].length), 0); - } - else{ - var thnumbers = input_name.value.split('.'); - thnumbers[thnumbers.length-1] = thnumbers[thnumbers.length-1].substring((thnumbers[thnumbers.length-1].lastIndexOf(",") !== -1 ? thnumbers[thnumbers.length-1].lastIndexOf(",") : thnumbers[thnumbers.length-1].length), 0); - } - - for(var i = 0; i < thnumbers.length; i++) { - if(i == 0 && thnumbers[i].length > 3) { - return show_alert_and_focus(input_name, wrongNumberFormat); - } - if(i > 0 && thnumbers[i].length != 3) { - return show_alert_and_focus(input_name, wrongNumberFormat); - } - } +// if(thpoint) { +// if(thpoint == ','){ +// var thnumbers = input_name.value.split(','); +// thnumbers[thnumbers.length-1] = thnumbers[thnumbers.length-1].substring((thnumbers[thnumbers.length-1].lastIndexOf(".") !== -1 ? thnumbers[thnumbers.length-1].lastIndexOf(".") : thnumbers[thnumbers.length-1].length), 0); +// } +// else{ +// var thnumbers = input_name.value.split('.'); +// thnumbers[thnumbers.length-1] = thnumbers[thnumbers.length-1].substring((thnumbers[thnumbers.length-1].lastIndexOf(",") !== -1 ? thnumbers[thnumbers.length-1].lastIndexOf(",") : thnumbers[thnumbers.length-1].length), 0); +// } +// +// for(var i = 0; i < thnumbers.length; i++) { +// if(i == 0 && thnumbers[i].length > 3) { +// return show_alert_and_focus(input_name, wrongNumberFormat); +// } +// if(i > 0 && thnumbers[i].length != 3) { +// return show_alert_and_focus(input_name, wrongNumberFormat); +// } +// } +// } + if(decpoint == thpoint) { + return show_alert_and_focus(input_name, wrongNumberFormat); } if(decpoint == ',') { var decnumbers = input_name.value.split(',');