From decc14c3244cb55cdc79fac85c4c979b014f2b75 Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 23 Nov 2019 20:41:20 +0000 Subject: sse: more cleanup --- view/js/main.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'view/js') diff --git a/view/js/main.js b/view/js/main.js index 9dcd8092e..de79074f7 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -536,10 +536,8 @@ function markRead(notifType) { $.get('ping?f=&markRead='+notifType); $('.' + notifType + '-button').hide(); $('#nav-' + notifType + '-sub').removeClass('show'); - sessionStorage.removeItem(notifType + '_notifications_cache'); sessionStorage.removeItem('notification_open'); - if(timer) clearTimeout(timer); - timer = setTimeout(updateInit,2000); + sse_setNotificationsStatus(); } function markItemRead(itemId) { -- cgit v1.2.3