From 53548046b32515b4f04056f77dc5a0824eb67aec Mon Sep 17 00:00:00 2001 From: borissedw Date: Wed, 30 Aug 2023 13:37:25 +0300 Subject: [PATCH] 0.0.205 --- static/js/filters_functions_find_route.js | 6 +++++- templates/pages/p_results_find_route.html | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) 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 @@
+ {% if not routes %} + Нечего не найдено! + {% endif %}
{% include "blocks/b_search_routes.html" %}