|
|
@ -101,11 +101,13 @@ angular.module('myApp.controllers', ['myApp.i18n']) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function selectPhoneCountryByIso2 (countryIso2) { |
|
|
|
function selectPhoneCountryByIso2 (countryIso2) { |
|
|
|
var i, country; |
|
|
|
if (countryIso2) { |
|
|
|
for (i = 0; i < Config.CountryCodes.length; i++) { |
|
|
|
var i, country; |
|
|
|
country = Config.CountryCodes[i]; |
|
|
|
for (i = 0; i < Config.CountryCodes.length; i++) { |
|
|
|
if (country[0] == countryIso2) { |
|
|
|
country = Config.CountryCodes[i]; |
|
|
|
return selectCountry({name: _(country[1] + '_raw'), code: country[2]}); |
|
|
|
if (country[0] == countryIso2) { |
|
|
|
|
|
|
|
return selectCountry({name: _(country[1] + '_raw'), code: country[2]}); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return selectCountry({name: _('country_select_modal_country_us_raw'), code: '+1'}); |
|
|
|
return selectCountry({name: _('country_select_modal_country_us_raw'), code: '+1'}); |
|
|
|