From 4a97b020104eaa7e7d892ffb4ec53348372ee46d Mon Sep 17 00:00:00 2001 From: SBD Date: Thu, 30 Nov 2023 14:28:37 +0300 Subject: [PATCH] 0.8.443 --- static/js/filters_functions_find_route.js | 12 ++---------- .../not_found_find_routes.html | 3 +-- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/static/js/filters_functions_find_route.js b/static/js/filters_functions_find_route.js index 66b3b56..77dc79d 100644 --- a/static/js/filters_functions_find_route.js +++ b/static/js/filters_functions_find_route.js @@ -114,17 +114,9 @@ function ajax_for_filter (data_d,get_url){ } } } - if (data.html === "\n\n\n\n\n"){ + if (data.html.includes("not_found_routes")){ // document.querySelector(".block-finded-routes").innerHTML = "Нечего не найдено!" - document.querySelector(".block-finded-routes").innerHTML = "
\n" + - "
\n" + - " Упс... Ничего не найдено, попробуйте\n" + - " изменить параметры поиска или оставьте заявку\n" + - " на перевозку посылки\n" + - "
\n" + - " \n" + - " \n" + - "
" + document.querySelector(".block-finded-routes").innerHTML = data.html } else { diff --git a/templates/templates_js_translate/not_found_find_routes.html b/templates/templates_js_translate/not_found_find_routes.html index c3bbc23..6be1116 100644 --- a/templates/templates_js_translate/not_found_find_routes.html +++ b/templates/templates_js_translate/not_found_find_routes.html @@ -2,8 +2,7 @@
Упс... Ничего не найдено, попробуйте - изменить параметры поиска или оставьте заявку - на перевозку посылки + изменить параметры поиска