diff --git a/static/js/filters_functions_find_route.js b/static/js/filters_functions_find_route.js
index ea24c59..c7dcfdc 100644
--- a/static/js/filters_functions_find_route.js
+++ b/static/js/filters_functions_find_route.js
@@ -1,7 +1,7 @@
-let timeout_range_slider = null
+timeout_range_slider = null
function filters_func_find_route_main (el,owner_type=null,win_loc_replace=null,weight=null){
- document.querySelector(".loader_filters_routes").classList.toggle("show")
+
console.log("asd")
if (win_loc_replace){
@@ -23,7 +23,6 @@ function filters_func_find_route_main (el,owner_type=null,win_loc_replace=null,w
if (el !== document.querySelector(".range_slider_form_filters")){
event.preventDefault()
}
- document.querySelector(".loader_filters_routes").classList.toggle("show")
// let form = el.form
// let formData = new FormData(form)
@@ -55,6 +54,9 @@ function filters_func_find_route_main (el,owner_type=null,win_loc_replace=null,w
}
function ajax_for_filter (data_d,get_url){
+ if (document.querySelector(".loader_filters_routes")){
+ document.querySelector(".loader_filters_routes").classList.toggle("show")
+ }
$.ajax({
headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
url: '/ru/routes/find_routes/',
diff --git a/templates/tb_base.html b/templates/tb_base.html
index 93a847f..872c743 100644
--- a/templates/tb_base.html
+++ b/templates/tb_base.html
@@ -42,6 +42,7 @@
+