Revision 030d9691
Von Rolf Fluehmann vor mehr als 8 Jahren hinzugefügt
js/common.js | ||
---|---|---|
1 | 1 |
function setupPoints(numberformat, wrongFormat) { |
2 |
decpoint = numberformat.substring((numberformat.substring(1, 2).match(/\.|\,/) ? 5 : 4), (numberformat.substring(1, 2).match(/\.|\,/) ? 6 : 5));
|
|
3 |
if (numberformat.substring(1, 2).match(/\.|\,/)) { |
|
2 |
decpoint = numberformat.substring((numberformat.substring(1, 2).match(/\.|\,|\'/) ? 5 : 4), (numberformat.substring(1, 2).match(/\.|\,|\'/) ? 6 : 5));
|
|
3 |
if (numberformat.substring(1, 2).match(/\.|\,|\'/)) {
|
|
4 | 4 |
thpoint = numberformat.substring(1, 2); |
5 | 5 |
} |
6 | 6 |
else { |
... | ... | |
44 | 44 |
if(thpoint && thpoint == '.'){ |
45 | 45 |
test_val = test_val.replace(/\./g, ''); |
46 | 46 |
} |
47 |
if(thpoint && thpoint == "'"){ |
|
48 |
test_val = test_val.replace(/\'/g, ''); |
|
49 |
} |
|
47 | 50 |
if(decpoint && decpoint == ','){ |
48 | 51 |
test_val = test_val.replace(/,/g, '.'); |
49 | 52 |
} |
Auch abrufbar als: Unified diff
added missing numberformat in java-script