diff --git a/themes/default/authentication.tpl b/themes/default/authentication.tpl index 61527e0a1..7ee038464 100644 --- a/themes/default/authentication.tpl +++ b/themes/default/authentication.tpl @@ -38,7 +38,7 @@ countriesNeedZipCode = new Array(); {if isset($country.states) && $country.contains_states} countries[{$country.id_country|intval}] = new Array(); {foreach from=$country.states item='state' name='states'} - countries[{$country.id_country|intval}].push({ldelim}'id' : '{$state.id_state}', 'name' : '{$state.name|escape:'htmlall':'UTF-8'}'{rdelim}); + countries[{$country.id_country|intval}].push({ldelim}'id' : '{$state.id_state}', 'name' : '{$state.name|addslashes}'{rdelim}); {/foreach} {/if} {if $country.need_identification_number} @@ -50,7 +50,7 @@ countriesNeedZipCode = new Array(); {/foreach} {/if} $(function(){ldelim} - $('.id_state option[value={if isset($smarty.post.id_state)}{$smarty.post.id_state}{else}{if isset($address)}{$address->id_state|escape:'htmlall':'UTF-8'}{/if}{/if}]').attr('selected', true); + $('.id_state option[value={if isset($smarty.post.id_state)}{$smarty.post.id_state}{else}{if isset($address)}{$address->id_state|intval}{/if}{/if}]').attr('selected', true); {rdelim}); //]]> {if $vat_management} @@ -159,7 +159,7 @@ $(function(){ldelim}
- +
{if isset($back)}{/if} @@ -176,11 +176,11 @@ $(function(){ldelim}
- +
- +
@@ -223,7 +223,7 @@ $(function(){ldelim} {* @@ -243,13 +243,13 @@ $(function(){ldelim}
@@ -302,7 +302,7 @@ $(function(){ldelim} @@ -378,15 +378,15 @@ $(function(){ldelim}- +
- +
- +
@@ -398,7 +398,7 @@ $(function(){ldelim} {* @@ -418,13 +418,13 @@ $(function(){ldelim}
@@ -444,19 +444,19 @@ $(function(){ldelim}- +
- +
- +
- +
{/if} @@ -467,46 +467,46 @@ $(function(){ldelim} {if $field_name eq "company"}- +
{elseif $field_name eq "vat_number"} {elseif $field_name eq "firstname"}- +
{elseif $field_name eq "lastname"}- +
{elseif $field_name eq "address1"}- + {l s='Street address, P.O. box, company name, c/o'}
{elseif $field_name eq "address2"}- + {l s='Apartment, suite, unit, building, floor, etc.'}
{elseif $field_name eq "postcode"}- +
{elseif $field_name eq "city"}- +