From 61e4f7e450e21267966a24fa62076e596b23333e Mon Sep 17 00:00:00 2001 From: SBD Date: Sun, 3 Dec 2023 19:26:56 +0300 Subject: [PATCH] 0.8.468 --- static/js/user_profile_2.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/static/js/user_profile_2.js b/static/js/user_profile_2.js index 42c8c2a..7abd334 100644 --- a/static/js/user_profile_2.js +++ b/static/js/user_profile_2.js @@ -82,6 +82,7 @@ function select_tab_profile (el,url,owner_type=null) { if (window.location.href.includes("profile")){ selectTabProfileIfHisNotSelected(url) } + deleteMarkerMessages(el) }, error: function (data){ console.log(data) @@ -90,6 +91,12 @@ function select_tab_profile (el,url,owner_type=null) { }); } +function deleteMarkerMessages (el) { + let marker = el.document.querySelector(".icon_unread_messages") + if (marker){ + marker.classList.remove("showed") + } +} function selectTabProfileIfHisNotSelected (url) { if (url !== 'new_route_view') {