Răsfoiți Sursa

#3520 Location improvements: use full country name instead of 2 letters code

Alex Trofimov 4 ani în urmă
părinte
comite
f3641ddf77
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      template/location_field_plain.html

+ 2 - 2
template/location_field_plain.html

@@ -36,10 +36,10 @@
         var sStreet = $('input[name="__name___street"]').val();
         var sNum = $('input[name="__name___street_number"]').val();
 
-        if (!sCountryCode || !sCountryCode.length)
+        if (!sCountry || !sCountry.length)
             return '';
 
-        sRet = '&country=' + encodeURIComponent(sCountryCode);
+        sRet = '&country=' + encodeURIComponent(sCountry);
 
         if (sZip.length && sMode !== 'no_street_no_zip')
             sRet += '&postalcode=' + encodeURIComponent(sZip);