sync
[roojs1] / Roo / bootstrap / PhoneInput.js
index 32c0f81..8cfc5ef 100644 (file)
@@ -18,21 +18,22 @@ 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()
         {
+            var data = Roo.bootstrap.PhoneInputData;
             var align = this.labelAlign || this.parentLabelAlign();
             var id = Roo.id();
             
-            for (var i = 0; i < this.Roo.bootstrap.PhoneInput.AllCountries.length; i++) {
-              var c = this.Roo.bootstrap.PhoneInput.AllCountries[i];
+            for (var i = 0; i < data.length; i++) {
+              var c = data[i];
               this.allCountries[i] = {
                 name: c[0],
                 iso2: c[1],