Roo/bootstrap/PhoneInput.js
authorjohn <john@roojs.com>
Fri, 23 Mar 2018 09:17:46 +0000 (17:17 +0800)
committerjohn <john@roojs.com>
Fri, 23 Mar 2018 09:17:46 +0000 (17:17 +0800)
roojs-bootstrap.js
roojs-bootstrap-debug.js

Roo/bootstrap/PhoneInput.js
roojs-bootstrap-debug.js
roojs-bootstrap.js

index 6b8730d..a5aa60e 100644 (file)
@@ -114,15 +114,15 @@ Roo.extend(Roo.bootstrap.PhoneInput, Roo.bootstrap.Input,  {
                     }
                     if(this.labelmd > 0){
                         label.cls += ' col-md-' + this.labelmd;
-                        contentCfg.cls += ' col-md-' + (12 - this.labelmd);
+                        container.cls += ' col-md-' + (12 - this.labelmd);
                     }
                     if(this.labelsm > 0){
                         label.cls += ' col-sm-' + this.labelsm;
-                        contentCfg.cls += ' col-sm-' + (12 - this.labelsm);
+                        container.cls += ' col-sm-' + (12 - this.labelsm);
                     }
                     if(this.labelxs > 0){
                         label.cls += ' col-xs-' + this.labelxs;
-                        contentCfg.cls += ' col-xs-' + (12 - this.labelxs);
+                        container.cls += ' col-xs-' + (12 - this.labelxs);
                     }
                 }
             }
index 6b9b737..e79a8de 100644 (file)
@@ -38023,15 +38023,15 @@ Roo.extend(Roo.bootstrap.PhoneInput, Roo.bootstrap.Input,  {
                     }
                     if(this.labelmd > 0){
                         label.cls += ' col-md-' + this.labelmd;
-                        contentCfg.cls += ' col-md-' + (12 - this.labelmd);
+                        container.cls += ' col-md-' + (12 - this.labelmd);
                     }
                     if(this.labelsm > 0){
                         label.cls += ' col-sm-' + this.labelsm;
-                        contentCfg.cls += ' col-sm-' + (12 - this.labelsm);
+                        container.cls += ' col-sm-' + (12 - this.labelsm);
                     }
                     if(this.labelxs > 0){
                         label.cls += ' col-xs-' + this.labelxs;
-                        contentCfg.cls += ' col-xs-' + (12 - this.labelxs);
+                        container.cls += ' col-xs-' + (12 - this.labelxs);
                     }
                 }
             }
index 9cee92e..1ba12fc 100644 (file)
@@ -1603,5 +1603,5 @@ Roo.bootstrap.PhoneInput=function(A){Roo.bootstrap.PhoneInput.superclass.constru
 ;var C={tag:'input',id:id,type:'tel',cls:'form-control tel-input',autocomplete:'new-password'};if(this.name){C.name=this.name;}if(this.disabled){C.disabled=true;}var D={tag:'div',cls:'flag-container',cn:[{tag:'div',cls:'flag'},{tag:'div',cls:'caret'}]};var E={tag:'div',cls:this.hasFeedback?'has-feedback':'',cn:[C]}
 ;var F={cls:'roo-select2-container input-group',cn:[D,E]};if(this.fieldLabel.length){var G={tag:'i',tooltip:'This field is required'};var H={tag:'label','for':id,cls:'control-label',cn:[]};var I={tag:'span',html:this.fieldLabel};G.cls='roo-required-indicator text-danger fa fa-lg fa-star left-indicator';
 H.cn=[G,I];if(this.indicatorpos=='right'){G.cls='roo-required-indicator text-danger fa fa-lg fa-star right-indicator';H.cn=[I,G];}if(A=='left'){F={tag:'div',cn:[F]};if(this.labelWidth>12){H.style="width: "+this.labelWidth+'px';}if(this.labelWidth<13&&this.labelmd==0){this.labelmd=this.labelWidth;
-}if(this.labellg>0){H.cls+=' col-lg-'+this.labellg;C.cls+=' col-lg-'+(12-this.labellg);}if(this.labelmd>0){H.cls+=' col-md-'+this.labelmd;contentCfg.cls+=' col-md-'+(12-this.labelmd);}if(this.labelsm>0){H.cls+=' col-sm-'+this.labelsm;contentCfg.cls+=' col-sm-'+(12-this.labelsm);
-}if(this.labelxs>0){H.cls+=' col-xs-'+this.labelxs;contentCfg.cls+=' col-xs-'+(12-this.labelxs);}}}B.cn=[H,F];var J=this;['xs','sm','md','lg'].map(function(K){if(J[K]){B.cls+=' col-'+K+'-'+J[K];}});return B;}});
+}if(this.labellg>0){H.cls+=' col-lg-'+this.labellg;C.cls+=' col-lg-'+(12-this.labellg);}if(this.labelmd>0){H.cls+=' col-md-'+this.labelmd;F.cls+=' col-md-'+(12-this.labelmd);}if(this.labelsm>0){H.cls+=' col-sm-'+this.labelsm;F.cls+=' col-sm-'+(12-this.labelsm);
+}if(this.labelxs>0){H.cls+=' col-xs-'+this.labelxs;F.cls+=' col-xs-'+(12-this.labelxs);}}}B.cn=[H,F];var J=this;['xs','sm','md','lg'].map(function(K){if(J[K]){B.cls+=' col-'+K+'-'+J[K];}});return B;}});