// fix states selection in form and address format in AdminAddress

This commit is contained in:
tDidierjean
2011-10-13 09:41:11 +00:00
parent b723506649
commit 8521287be8
5 changed files with 156 additions and 118 deletions
+2 -2
View File
@@ -24,7 +24,7 @@
* International Registered Trademark & Property of PrestaShop SA
*/
function ajaxStates ()
function ajaxStates (id_state_selected)
{
$.ajax({
url: "ajax.php",
@@ -41,7 +41,7 @@ function ajaxStates ()
{
$("#id_state").html(html);
$("#contains_states").fadeIn();
$('#id_state option[value={$obj->id_state}]').attr("selected", "selected");
$('#id_state option[value=' + id_state_selected + ']').attr("selected", "selected");
}
}
});