diff --git a/static/js/filters_functions_find_route.js b/static/js/filters_functions_find_route.js index b54e404..7403d04 100644 --- a/static/js/filters_functions_find_route.js +++ b/static/js/filters_functions_find_route.js @@ -2,7 +2,7 @@ function filters_func_find_route_main (el){ if (el !== document.querySelector(".range_slider_form_filters")){ event.preventDefault() } - // document.querySelector(".loader_filters_routes").classList.toggle("show") + document.querySelector(".loader_filters_routes").classList.toggle("show") let one_sec = setTimeout(function (){ // let form = el.form // let formData = new FormDat a(form) @@ -22,7 +22,7 @@ function filters_func_find_route_main (el){ // enctype: 'json', data: JSON.stringify(data_d), success: function(data){ - // document.querySelector(".loader_filters_routes").classList.toggle("show") + document.querySelector(".loader_filters_routes").classList.toggle("show") document.querySelector(".block-finded-routes").innerHTML = data.html if (data.html === "\n\n\n\n\n"){ document.querySelector(".block-finded-routes").innerHTML = "Нечего не найдено!" @@ -32,6 +32,7 @@ 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") // 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 7857471..8f9755c 100644 --- a/templates/pages/p_results_find_route.html +++ b/templates/pages/p_results_find_route.html @@ -103,18 +103,18 @@
- +
- +
{% for item in form.fields.from_place.choices %} - + {% endfor %} @@ -189,7 +189,7 @@
@@ -208,13 +208,13 @@
Сортировать по:
-{# #} +
{% include "blocks/b_search_routes.html" %}