From dfad87f67414c200770e8d279a76d820ffe4a87b Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 23 Sep 2020 07:43:35 +0000 Subject: fix notifications html not reset on markRead() --- view/js/main.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'view') diff --git a/view/js/main.js b/view/js/main.js index 0e143bc99..29f7ed7ca 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -535,6 +535,8 @@ function closeMenu(theID) { function markRead(notifType) { $.get('ping?f=&markRead='+notifType); $('.' + notifType + '-button').fadeOut(function() { + $("." + notifType + "-update").html('0'); + $('#nav-' + notifType + '-menu').html(''); $('#nav-' + notifType + '-sub').removeClass('show'); sessionStorage.removeItem('notification_open'); sse_setNotificationsStatus(); -- cgit v1.2.3