// fix states selection in form and address format in AdminAddress
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9309 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -40,16 +40,14 @@
|
||||
{rdelim};
|
||||
{/foreach}
|
||||
displayFlags(languages, id_language, {$allowEmployeeFormLang});
|
||||
|
||||
{literal}
|
||||
|
||||
if ($('#id_country'))
|
||||
{
|
||||
ajaxStates();
|
||||
$('#id_country').change(function() {
|
||||
{ldelim}
|
||||
ajaxStates({$fields_value.id_state});
|
||||
$('#id_country').change(function() {ldelim}
|
||||
ajaxStates();
|
||||
});
|
||||
}
|
||||
{/literal}
|
||||
{rdelim});
|
||||
{rdelim}
|
||||
{rdelim});
|
||||
{if isset($script)}
|
||||
{$script}
|
||||
|
||||
@@ -41,15 +41,13 @@
|
||||
{/foreach}
|
||||
displayFlags(languages, id_language, {$allowEmployeeFormLang});
|
||||
|
||||
{literal}
|
||||
if ($('#id_country') && $('#id_state'))
|
||||
{
|
||||
ajaxStates();
|
||||
$('#id_country').change(function() {
|
||||
{ldelim}
|
||||
ajaxStates({$fields_value.id_state});
|
||||
$('#id_country').change(function() {ldelim}
|
||||
ajaxStates();
|
||||
});
|
||||
}
|
||||
{/literal}
|
||||
{rdelim});
|
||||
{rdelim}
|
||||
{rdelim});
|
||||
</script>
|
||||
<script type="text/javascript" src="../js/form.js"></script>
|
||||
@@ -94,6 +92,7 @@
|
||||
{/foreach}
|
||||
{else}
|
||||
{foreach $input.options.query AS $option}
|
||||
{$fields_value[$input.name]|@p}
|
||||
<option value="{$option[$input.options.id]}"
|
||||
{if $fields_value[$input.name] == $option[$input.options.id]}selected="selected"{/if}>{$option[$input.options.name]}</option>
|
||||
{/foreach}
|
||||
|
||||
Reference in New Issue
Block a user