This commit is contained in:
2023-10-31 22:07:27 +03:00
parent 8c05b987ed
commit 189b9233ab
2 changed files with 19 additions and 2 deletions

View File

@@ -166,10 +166,27 @@ function forloop_func_form (data,get,str) {
}
}
}
if (!data["type_transport"]){
data["type_transport"] = ""
str = `${str}type_transport=&`
}
let btn_find_routes = document.querySelector(".btn_find_routes")
if (btn_find_routes){
if (!str.includes('owner_type')){
if (data['owner_type']){
str = `${str}owner_type=${data['owner_type']}`
} else {
let btn_find_routes = document.querySelector(".btn_find_routes")
if (btn_find_routes.dataset){
let dataset = btn_find_routes.dataset
if (dataset['owner_type']){
str = `${str}owner_type=${dataset['owner_type']}`
}
}
}
}
}
if (get !== null){
let list = [data,str]
return list