[IMP] web_decimal_numpad_dot: use the decimal_point defined in user language

This commit is contained in:
Roel Adriaans
2015-12-16 10:45:30 +01:00
committed by David
parent 5a8ff40850
commit 4e33022a92

View File

@@ -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);
}
},
});