From 6e758cf62eaa03d070c8485783dee0a6bc145d47 Mon Sep 17 00:00:00 2001 From: SDE Date: Tue, 5 Dec 2023 12:47:23 +0300 Subject: [PATCH] 0.8.34 fix route_search --- static/js/filters_functions_find_route.js | 16 ++++++++-------- .../f_find_route_form_main_find_routes.html | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/static/js/filters_functions_find_route.js b/static/js/filters_functions_find_route.js index 77dc79d..b951d8a 100644 --- a/static/js/filters_functions_find_route.js +++ b/static/js/filters_functions_find_route.js @@ -1,6 +1,6 @@ timeout_range_slider = null -function filters_func_find_route_main (el,owner_type=null,win_loc_replace=null,weight=null){ +function filters_func_find_route_main (el, owner_type=null, win_loc_replace=null, weight=null){ console.log("asd") @@ -11,9 +11,9 @@ function filters_func_find_route_main (el,owner_type=null,win_loc_replace=null,w let list = forloop_func_form(data_d,"get",get_url) data_d = list[0] get_url = list[1] - // if (owner_type !== null) { - // data_d['owner_type'] = owner_type - // } + if (owner_type !== null) { + data_d['owner_type'] = owner_type + } // get_url = get_url + `owner_type=${owner_type}` window.location.href = `${win_loc_replace}?${get_url}` @@ -31,10 +31,10 @@ function filters_func_find_route_main (el,owner_type=null,win_loc_replace=null,w let list = forloop_func_form(data_d,"get",get_url) data_d = list[0] get_url = list[1] - // if (owner_type !== null) { - // data_d['owner_type'] = owner_type - // get_url = get_url + `owner_type=${owner_type}` - // } + if (owner_type !== null) { + data_d['owner_type'] = owner_type + // get_url = get_url + `owner_type=${owner_type}` + } if (weight){ diff --git a/templates/forms/f_find_route_form_main_find_routes.html b/templates/forms/f_find_route_form_main_find_routes.html index 71efd7a..57f5567 100644 --- a/templates/forms/f_find_route_form_main_find_routes.html +++ b/templates/forms/f_find_route_form_main_find_routes.html @@ -101,7 +101,7 @@
{% if show_filter_and_results %} - + {% else %} {% endif %}