IDEMPIERE-684 problem with calculator with value 0.02 / Thanks to David Peñuela (dpenuela)

This commit is contained in:
Carlos Ruiz 2013-03-08 00:51:57 -05:00
parent f5ede31a71
commit bc149d881b
2 changed files with 2 additions and 2 deletions

View File

@ -204,7 +204,7 @@ public class NumberBox extends Div
decimalBox.setId(decimalBox.getUuid()); decimalBox.setId(decimalBox.getUuid());
txtCalc.setId(txtCalc.getUuid()); txtCalc.setId(txtCalc.getUuid());
txtCalc.setWidgetListener("onKeyPress", "return calc.validate('" + txtCalc.setWidgetListener("onKeyUp", "return calc.validate('" +
decimalBox.getId() + "','" + txtCalc.getId() decimalBox.getId() + "','" + txtCalc.getId()
+ "'," + integral + "," + (int)separatorChar + ", event);"); + "'," + integral + "," + (int)separatorChar + ", event);");
txtCalc.setMaxlength(250); txtCalc.setMaxlength(250);

View File

@ -18,7 +18,7 @@ function Calc()
if(key == 13 || key == 61) // Enter, = if(key == 13 || key == 61) // Enter, =
{ {
evaluate(displayTextId, calcTextId); evaluate(displayTextId, calcTextId, String.fromCharCode(separatorKey));
return false; return false;
} }
else if (key == 0) // control, delete, ... else if (key == 0) // control, delete, ...