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') {