From 483d450af429ab06798cbaf5d293f5a6498f909a Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 23 Nov 2019 20:47:34 +0000 Subject: sse: use fadeOut() to be consistent --- view/js/main.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'view/js/main.js') diff --git a/view/js/main.js b/view/js/main.js index de79074f7..eac9bf6ef 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -534,10 +534,11 @@ function closeMenu(theID) { function markRead(notifType) { $.get('ping?f=&markRead='+notifType); - $('.' + notifType + '-button').hide(); - $('#nav-' + notifType + '-sub').removeClass('show'); - sessionStorage.removeItem('notification_open'); - sse_setNotificationsStatus(); + $('.' + notifType + '-button').fadeOut(function() { + $('#nav-' + notifType + '-sub').removeClass('show'); + sessionStorage.removeItem('notification_open'); + sse_setNotificationsStatus(); + }); } function markItemRead(itemId) { -- cgit v1.2.3