IDEMPIERE-684 problem with calculator with value 0.02 / Thanks to David Peñuela (dpenuela)
This commit is contained in:
parent
f5ede31a71
commit
bc149d881b
|
@ -204,7 +204,7 @@ public class NumberBox extends Div
|
|||
decimalBox.setId(decimalBox.getUuid());
|
||||
txtCalc.setId(txtCalc.getUuid());
|
||||
|
||||
txtCalc.setWidgetListener("onKeyPress", "return calc.validate('" +
|
||||
txtCalc.setWidgetListener("onKeyUp", "return calc.validate('" +
|
||||
decimalBox.getId() + "','" + txtCalc.getId()
|
||||
+ "'," + integral + "," + (int)separatorChar + ", event);");
|
||||
txtCalc.setMaxlength(250);
|
||||
|
|
|
@ -18,7 +18,7 @@ function Calc()
|
|||
|
||||
if(key == 13 || key == 61) // Enter, =
|
||||
{
|
||||
evaluate(displayTextId, calcTextId);
|
||||
evaluate(displayTextId, calcTextId, String.fromCharCode(separatorKey));
|
||||
return false;
|
||||
}
|
||||
else if (key == 0) // control, delete, ...
|
||||
|
|
Loading…
Reference in New Issue