From: Alan Date: Tue, 26 Mar 2024 09:36:08 +0000 (+0800) Subject: disable thousand seperator X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=fa31935ccd4b966fe8297c2d8534d03d0302f00d disable thousand seperator --- diff --git a/Roo/form/NumberField.js b/Roo/form/NumberField.js index 5fa9597398..ac0ab795e7 100644 --- a/Roo/form/NumberField.js +++ b/Roo/form/NumberField.js @@ -140,7 +140,7 @@ Roo.extend(Roo.form.NumberField, Roo.form.TextField, { setValue : function(v){ v = this.fixPrecision(v); if(this.thousandSeparator != ''){ - v = Roo.util.Format.number(v, this.decimalPrecision, this.thousandSeparator); + // v = Roo.util.Format.number(v, this.decimalPrecision, this.thousandSeparator); } Roo.form.NumberField.superclass.setValue.call(this, String(v).replace(".", this.decimalSeparator)); }, diff --git a/docs/src/Roo_form_NumberField.js.html b/docs/src/Roo_form_NumberField.js.html index c22095adb9..5d40d7b657 100644 --- a/docs/src/Roo_form_NumberField.js.html +++ b/docs/src/Roo_form_NumberField.js.html @@ -76,6 +76,7 @@ if(this.allowDecimals){ allowed += this.decimalSeparator; } + allowed += this.thousandSeparator; if(this.allowNegative){ allowed += "-"; }