diff --git a/static/js/dynamic_loading_routes.js b/static/js/dynamic_loading_routes.js index 9ad0ab6..460f945 100644 --- a/static/js/dynamic_loading_routes.js +++ b/static/js/dynamic_loading_routes.js @@ -4,7 +4,7 @@ separator_iterator = 1 iterator_f_check = 1 paging_iterator = 1 -function load_routes (el,news=null,incrase) { +function load_routes (el,news=null,incrase,owner_type) { let local_page_iterator = standart_page_iterator if (!news){ local_page_iterator = page_iterator @@ -37,7 +37,9 @@ function load_routes (el,news=null,incrase) { // if (new_el_dataset){ // let number_last_route = new_el_dataset['numberOfRoute'] // let number_last_route = el.dataset['lastRoute'] - + if (owner_type){ + data_d['owner_type'] = owner_type + } $.ajax({ headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() }, diff --git a/static/js/filters_functions_find_route.js b/static/js/filters_functions_find_route.js index 27c8807..18b57d8 100644 --- a/static/js/filters_functions_find_route.js +++ b/static/js/filters_functions_find_route.js @@ -134,7 +134,7 @@ function ajax_for_filter (data_d,get_url){ } else { old_page_iterator = 1 let new_search = document.querySelector(`.page_paging_elements_${page_iterator}`) - if (new_search){ + if (new_twsearch){ new_search.innerHTML = data.html } else { let new_page_routes1 = document.createElement("div") diff --git a/templates/blocks/b_find_route_form.html b/templates/blocks/b_find_route_form.html index d4e4ed1..a47d094 100644 --- a/templates/blocks/b_find_route_form.html +++ b/templates/blocks/b_find_route_form.html @@ -21,7 +21,7 @@ {% if last_block == False and next_page_els_count %}
- +
diff --git a/templates/blocks/b_header.html b/templates/blocks/b_header.html index 20b532c..3e02d4e 100644 --- a/templates/blocks/b_header.html +++ b/templates/blocks/b_header.html @@ -15,7 +15,7 @@
-