diff --git a/js/form.js b/js/form.js index a8c1c5738..c1432c34e 100644 --- a/js/form.js +++ b/js/form.js @@ -26,9 +26,9 @@ function ajaxStates (id_state_selected) { $.ajax({ - url: "ajax.php", + url: "index.php", cache: false, - data: "ajaxStates=1&no_empty=1&id_country="+$('#id_country').val() + "&id_state=" + $('#id_state').val(), + data: "token="+state_token+"&ajax=1&action=states&tab=AdminStates&no_empty=1&id_country="+$('#id_country').val() + "&id_state=" + $('#id_state').val(), success: function(html) { if (html == 'false') @@ -59,4 +59,4 @@ function ajaxStates (id_state_selected) } }); } -} \ No newline at end of file +}