From: john Date: Mon, 29 Oct 2018 08:17:28 +0000 (+0800) Subject: Roo/bootstrap/PhoneInput.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=8a7c0e05d41999facc37d661349a0bcc23b19a1e Roo/bootstrap/PhoneInput.js roojs-bootstrap.js roojs-bootstrap-debug.js --- diff --git a/Roo/bootstrap/PhoneInput.js b/Roo/bootstrap/PhoneInput.js index af4cac135d..b4c562f9be 100644 --- a/Roo/bootstrap/PhoneInput.js +++ b/Roo/bootstrap/PhoneInput.js @@ -551,6 +551,8 @@ Roo.extend(Roo.bootstrap.PhoneInput, Roo.bootstrap.TriggerField, { e.stopEvent(); } + Roo.log(this.getValue()); + this.setValue(this.getValue()); } diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index 36f4be4124..7d7ab06be9 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -40394,6 +40394,8 @@ Roo.extend(Roo.bootstrap.PhoneInput, Roo.bootstrap.TriggerField, { e.stopEvent(); } + Roo.log(this.getValue()); + this.setValue(this.getValue()); } diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index 87769056d3..1ac554c8c3 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -1658,7 +1658,7 @@ if(!d){return false;}return d;},setDialCode:function(v){this.dialCodeHolder.dom. }return v;},setValue:function(v){var d=this.getDialCode(v);if(v.length==0||!d||d.length==0){if(this.rendered){this.inputEl().dom.value=(v===null||v===undefined?'':v);this.hiddenEl().dom.value=(v===null||v===undefined?'':v);}return;}this.setFlagClass(this.dialCodeMapping[d].iso2); this.setDialCode(d);this.inputEl().dom.value=v.replace('+'+d,'');this.hiddenEl().dom.value=this.getValue();this.validate();},getDialCode:function(v){v=v||'';if(v.length==0){return this.dialCodeHolder.dom.value;}var A="";if(v.charAt(0)!="+"){return false;} var B="";for(var i=1;i