|
@ -15,7 +15,13 @@ |
|
|
// Cancel the keypress
|
|
|
// Cancel the keypress
|
|
|
e.preventDefault(); |
|
|
e.preventDefault(); |
|
|
// Add the comma to the value of the input field
|
|
|
// 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); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
}); |
|
|
}); |
|
|