added explanatory comment

This commit is contained in:
lindhork 2021-02-12 01:25:14 +01:00
parent af7ef25c9d
commit 0801a2fbc4

View file

@ -121,7 +121,8 @@ CardCustomField.register('cardCustomField');
{
'submit .js-card-customfield-currency'(event) {
event.preventDefault();
const value = Number(this.find('input').value.replace(/,/i,'.'), 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);
},
},