mirror of
https://github.com/wekan/wekan.git
synced 2026-02-20 06:58:07 +01:00
Merge pull request #3564 from lindhork/currency_decimal_separator
added replacement from comma to dot
This commit is contained in:
commit
adf94b5e21
1 changed files with 2 additions and 1 deletions
|
|
@ -121,7 +121,8 @@ CardCustomField.register('cardCustomField');
|
||||||
{
|
{
|
||||||
'submit .js-card-customfield-currency'(event) {
|
'submit .js-card-customfield-currency'(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
const value = Number(this.find('input').value, 10);
|
// To allow input separated by comma, the comma is replaced by a period.
|
||||||
|
const value = Number(this.find('input').value.replace(/,/i, '.'), 10);
|
||||||
this.card.setCustomField(this.customFieldId, value);
|
this.card.setCustomField(this.customFieldId, value);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue