This commit is contained in:
2023-08-30 13:37:25 +03:00
parent 879f452690
commit 53548046b3
2 changed files with 8 additions and 1 deletions

View File

@@ -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
// },{})
},

View File

@@ -214,6 +214,9 @@
</div>
<div class="block-finded-routes">
{% if not routes %}
<span style='color: #ff0000;font-weight: 800;font-size: 18px;padding: 10px;'>Нечего не найдено!</span>
{% endif %}
<img class="loader_filters_routes" src="{% static "img/svg/loader.svg" %}">
<div class="page_routes_1">
{% include "blocks/b_search_routes.html" %}