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) } } //