diff --git a/static/js/filters_functions_find_route.js b/static/js/filters_functions_find_route.js index 7403d04..b8edafa 100644 --- a/static/js/filters_functions_find_route.js +++ b/static/js/filters_functions_find_route.js @@ -32,7 +32,11 @@ function filters_func_find_route_main (el){ // window.location.href = window.location.href + "?" + get_url // window.location.search = "?" + get_url history.pushState({'data':data_d,'str_data':get_url}, "state_filters", `?${get_url}`); - document.querySelector(".block-finded-routes") + let element = document.createElement("img") + element.classList.add("loader_filters_routes") + element.src = "/static/img/svg/loader.svg" + let ins_bef_el = document.querySelector(".block-finded-routes").firstChild + $(element).insertBefore(ins_bef_el) // window.history.pushState({data:get_url // },{}) }, diff --git a/templates/pages/p_results_find_route.html b/templates/pages/p_results_find_route.html index 8f9755c..3e5340e 100644 --- a/templates/pages/p_results_find_route.html +++ b/templates/pages/p_results_find_route.html @@ -214,6 +214,9 @@