Roo/bootstrap/PhoneInput.js
authorjohn <john@roojs.com>
Wed, 28 Mar 2018 04:15:22 +0000 (12:15 +0800)
committerjohn <john@roojs.com>
Wed, 28 Mar 2018 04:15:22 +0000 (12:15 +0800)
Roo/bootstrap/PhoneInput.js

index 884b75a..6e3563d 100644 (file)
@@ -18,13 +18,14 @@ Roo.extend(Roo.bootstrap.PhoneInput, Roo.bootstrap.TriggerField, {
         
         selectedClass: 'active',
         
-        dialCodeMapping: false,
+        allCountries: false,
         
-        defaultDialCode: '+852',
+        dialCodeMapping: false,
         
         preferedCountries: false,
         
-        allCountries: false,
+        defaultDialCode: '+852',
+        
         
         getAutoCreate : function()
         {
@@ -32,8 +33,8 @@ Roo.extend(Roo.bootstrap.PhoneInput, Roo.bootstrap.TriggerField, {
             var align = this.labelAlign || this.parentLabelAlign();
             var id = Roo.id();
             
-            for (var i = 0; i < this.CountryData.length; i++) {
-              var c = this.CountryData[i];
+            for (var i = 0; i < data.length; i++) {
+              var c = data[i];
               this.allCountries[i] = {
                 name: c[0],
                 iso2: c[1],