Revision 3f3b6fec
Von Rolf Fluehmann vor mehr als 8 Jahren hinzugefügt
- ID 3f3b6fec9c576362dd3c442a8573c5a7123cf705
- Vorgänger ed3bf4aa
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