initEvents : function()
{
+ if(this.preferedCountries) {
+ for (var i = 0; i < this.preferedCountries.length; i++) {
+ for (var j = 0; j < this.allCountries.length; j++) {
+ if(this.allCountries[j].dialCode == this.preferedCountries[i]) {
+ var t = this.allCountries[j];
+ this.allCountries.splice(j,1);
+ this.allCountries.unshift(t);
+ }
+ }
+ }
+ }
+
this.createList();
Roo.bootstrap.PhoneInput.superclass.initEvents.call(this);