From: john Date: Tue, 16 Oct 2018 04:45:43 +0000 (+0800) Subject: sync X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=1fc8d2e55d6a1e3d7a229e83d62fe0b5237f3e09 sync --- diff --git a/Roo/bootstrap/MoneyField.js b/Roo/bootstrap/MoneyField.js index 378a0a2ae0..51c88004c4 100644 --- a/Roo/bootstrap/MoneyField.js +++ b/Roo/bootstrap/MoneyField.js @@ -105,6 +105,13 @@ Roo.extend(Roo.bootstrap.MoneyField, Roo.bootstrap.ComboBox, { cls: 'hidden-number-input' }; + if( + this.maxLength && + Number.isInteger(this.maxLength * 1) + ) { + input.maxlength = this.maxLength; + } + if (this.name) { hiddenInput.name = this.name; } diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index dc0f919675..0dc7ff60c5 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -40513,6 +40513,13 @@ Roo.extend(Roo.bootstrap.MoneyField, Roo.bootstrap.ComboBox, { cls: 'hidden-number-input' }; + if( + this.maxLength && + Number.isInteger(this.maxLength * 1) + ) { + input.maxlength = this.maxLength; + } + if (this.name) { hiddenInput.name = this.name; } diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index cc864131f9..9c9176a483 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -1662,8 +1662,8 @@ var B="";for(var i=1;i12){K.style="width: "+this.labelWidth+'px';}if(this.labelWidth<13&&this.labelmd==0){this.labelmd=this.labelWidth;