diff --git a/static/js/filters_functions_find_route.js b/static/js/filters_functions_find_route.js index 46925a2..f73b173 100644 --- a/static/js/filters_functions_find_route.js +++ b/static/js/filters_functions_find_route.js @@ -27,10 +27,13 @@ function filters_func_find_route_main (el,owner_type=null,win_loc_replace=null){ let get_url = "" let list = forloop_func_form(data_d,"get",get_url) data_d = list[0] + get_url = list[1] if (owner_type !== null) { data_d['owner_type'] = owner_type + get_url = get_url + `owner_type=${owner_type}` } - get_url = list[1] + + $.ajax({ headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() }, url: '/ru/routes/find_routes/',