From b41f8c7eca13dcb6e7c2b6152d158ee5e2aabb5d Mon Sep 17 00:00:00 2001 From: SBD Date: Wed, 31 Jan 2024 13:37:31 +0300 Subject: [PATCH] 3 --- static/js/authorization.js | 2 +- static/js/global_js.js | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/static/js/authorization.js b/static/js/authorization.js index be0c42c..13de9b5 100644 --- a/static/js/authorization.js +++ b/static/js/authorization.js @@ -18,7 +18,7 @@ function SendLoginForm(el){ data: formData, success: function(data){ - location.href = `/profile/page/dashboard/?mobile=${getInfoAboutUser() === 'mobile'}` + location.href = `/profile/page/dashboard/` diff --git a/static/js/global_js.js b/static/js/global_js.js index dadf425..748fbc9 100644 --- a/static/js/global_js.js +++ b/static/js/global_js.js @@ -25,10 +25,13 @@ window.onload = function (){ setStandartSettingsToBlockOverlay() } - if (window.location.href.includes("profile")){ - selectTabProfileIfHisNotSelected(url) + // if (window.location.href.includes("profile")){ + // selectTabProfileIfHisNotSelected(url) + // } + let chats = document.querySelector(`[data-ajax-url='chats']`) + if (chats){ + deleteMarkerMessages() } - deleteMarkerMessages(el) } } //