Browse Source

web_decimal_numpad_dot: use the decimal_point defined in user language

pull/1245/head
Roel Adriaans 9 years ago
committed by Pedro M. Baeza
parent
commit
180d33ffbe
  1. 8
      web_decimal_numpad_dot/static/src/js/numpad_dot.js

8
web_decimal_numpad_dot/static/src/js/numpad_dot.js

@ -15,7 +15,13 @@
// Cancel the keypress
e.preventDefault();
// Add the comma to the value of the input field
this.$("input").val(this.$("input").val() + ',');
this.$("input").val(this.$("input").val() + instance.web._t.database.parameters.decimal_point);
}
else if (e.keyCode == '44' || e.charCode == '44') {
// Cancel the keypress
e.preventDefault();
// Add the comma to the value of the input field
this.$("input").val(this.$("input").val() + instance.web._t.database.parameters.thousands_sep);
}
},
});

Loading…
Cancel
Save