This commit is contained in:
2023-08-30 13:28:03 +03:00
parent bf96a97d0b
commit 879f452690
2 changed files with 10 additions and 9 deletions

View File

@@ -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 = "<span style='color: #ff0000;font-weight: 800;font-size: 18px;padding: 10px;'>Нечего не найдено!</span>"
@@ -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
// },{})
},