From 66e0edebc505fd40e833bb384180b97b23bbc596 Mon Sep 17 00:00:00 2001 From: SBD Date: Wed, 29 Nov 2023 19:11:08 +0300 Subject: [PATCH] 0.8.430 --- static/js/find_route.js | 19 ++++++++++--------- static/js/user_profile.js | 2 +- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/static/js/find_route.js b/static/js/find_route.js index 61affb0..3612190 100644 --- a/static/js/find_route.js +++ b/static/js/find_route.js @@ -65,15 +65,16 @@ function open_chat (user_id){ } function changeWidthEL (el){ - let parent = el.offsetParent - let loader_place = parent.querySelector('.abbreviation_airport_in_search') - if (loader_place.innerHTML){ - loader_place.classList.remove('hide') - el.classList.remove('w_100') - } else { - loader_place.classList.add('hide') - el.classList.add('w_100') - } + + let parent = el.offsetParent + let loader_place = parent.querySelector('.abbreviation_airport_in_search') + if (loader_place.innerHTML){ + loader_place.classList.remove('hide') + el.classList.remove('w_100') + } else { + loader_place.classList.add('hide') + el.classList.add('w_100') + } } diff --git a/static/js/user_profile.js b/static/js/user_profile.js index 07fae13..86d65f4 100644 --- a/static/js/user_profile.js +++ b/static/js/user_profile.js @@ -231,7 +231,7 @@ function confirmRemove(el) { } function loader_place_ins_boris (el,type=null){ - if (el){ + if (el && !window.location.href.includes("profile")){ let loader_place = document.querySelector(".abbreviation_airport_in_search") let cur_loader_place = el.nextElementSibling