From: john Date: Mon, 22 Oct 2018 06:39:17 +0000 (+0800) Subject: roojs-bootstrap.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=6f8aff1efb7dcf84a7f81a5217d8d52fd91b6401 roojs-bootstrap.js roojs-bootstrap-debug.js --- diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index 998e2ffea1..c38aacf336 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -39924,6 +39924,7 @@ Roo.extend(Roo.bootstrap.PhoneInput, Roo.bootstrap.TriggerField, { var input = { tag: 'input', id : id, + type: 'number', maxlength: this.max_length, cls : 'form-control tel-input', autocomplete: 'new-password' diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index c5a45a8f20..1aa48f10b0 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -1635,7 +1635,7 @@ return d;} // Roo/bootstrap/PhoneInput.js Roo.bootstrap.PhoneInput=function(A){Roo.bootstrap.PhoneInput.superclass.constructor.call(this,A);};Roo.extend(Roo.bootstrap.PhoneInput,Roo.bootstrap.TriggerField,{listWidth:undefined,selectedClass:'active',invalidClass:"has-warning",validClass:'has-success',allowed:'0123456789',max_length:15,defaultDialCode:'+852',preferedCountries:false,getAutoCreate:function(){var A=Roo.bootstrap.PhoneInputData(); var B=this.labelAlign||this.parentLabelAlign();var id=Roo.id();this.allCountries=[];this.dialCodeMapping=[];for(var i=0;i12){J.style="width: "+this.labelWidth+'px';}if(this.labelWidth<13&&this.labelmd==0){this.labelmd=this.labelWidth;