IDEMPIERE-1320 problem reported with calculator and arithmetic separator ,
This commit is contained in:
parent
418a947486
commit
f632c150f9
|
@ -96,7 +96,7 @@ function Calc()
|
||||||
var value = calcText.value;
|
var value = calcText.value;
|
||||||
if (separator != '.')
|
if (separator != '.')
|
||||||
{
|
{
|
||||||
var re = new RegExp("[" + separator + "]");
|
var re = new RegExp("[" + separator + "]", "g");
|
||||||
value = value.replace(re,'.');
|
value = value.replace(re,'.');
|
||||||
}
|
}
|
||||||
var result = "" + eval(value);
|
var result = "" + eval(value);
|
||||||
|
|
Loading…
Reference in New Issue