From 7b75c533a80e258f64ddb0a541bddbf3600194aa Mon Sep 17 00:00:00 2001 From: SBD Date: Wed, 31 Jan 2024 13:23:50 +0300 Subject: [PATCH] 3 --- static/js/global_js.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/static/js/global_js.js b/static/js/global_js.js index 29324b7..dadf425 100644 --- a/static/js/global_js.js +++ b/static/js/global_js.js @@ -11,6 +11,25 @@ window.onload = function (){ middleWareJS() openOrCloseCurtainSupportChat() openOverlayOrClose() + if (window.location.href.includes('profile') && !window.location.href.includes('login') && !window.location.href.includes('registration')){ + let user_type = getInfoAboutUser() + if (user_type === 'mobile') { + open_curtain_w_btn_profile() + + } else { + if (!window.location.href.includes('profile')){ + open_curtain_w_btn_profile() + } + } + if (window.location.href.includes("profile")){ + setStandartSettingsToBlockOverlay() + } + + if (window.location.href.includes("profile")){ + selectTabProfileIfHisNotSelected(url) + } + deleteMarkerMessages(el) + } } //