This commit is contained in:
SBD
2023-11-30 14:28:37 +03:00
parent aa492f6ca4
commit 4a97b02010
2 changed files with 3 additions and 12 deletions

View File

@@ -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 = "<span style='color: #ff0000;font-weight: 800;font-size: 18px;padding: 10px;'>Нечего не найдено!</span>"
document.querySelector(".block-finded-routes").innerHTML = "<div class=\"not_found_routes show\">\n" +
" <div class=\"text-align-center fw-700 font-large c-txt-b2 m-a w-80 m-t-8p\">\n" +
" Упс... <span class=\"orange-text\">Ничего не найдено</span>, попробуйте\n" +
" изменить параметры поиска или оставьте заявку\n" +
" на перевозку посылки\n" +
" </div>\n" +
" <img class=\"boxes_not_fond_routes left\" src=\"/static/img/boxes_for_not_found_routes/b_1.svg\"\">\n" +
" <img class=\"boxes_not_fond_routes right\" src=\"/static/img/boxes_for_not_found_routes/b_2.svg\"\">\n" +
" </div>"
document.querySelector(".block-finded-routes").innerHTML = data.html
} else {

View File

@@ -2,8 +2,7 @@
<div class="not_found_routes show">
<div class="text-align-center fw-700 font-large c-txt-b2 m-a w-80 m-t-8p">
Упс... <span class="orange-text">Ничего не найдено</span>, попробуйте
изменить параметры поиска или оставьте заявку
на перевозку посылки
изменить параметры поиска
</div>
<img class="boxes_not_fond_routes left" src="{% static "img/boxes_for_not_found_routes/b_1.svg" %}">
<img class="boxes_not_fond_routes right" src="{% static "img/boxes_for_not_found_routes/b_2.svg" %}">