From 73e8af98f21f69195f723782c69243e0d7237780 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 27 Sep 2021 07:01:33 +0000 Subject: fix notification panel collapsed state not saved if closed manually --- view/tpl/notifications_widget.tpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'view/tpl') diff --git a/view/tpl/notifications_widget.tpl b/view/tpl/notifications_widget.tpl index 76b0851a7..4ef98e2f9 100644 --- a/view/tpl/notifications_widget.tpl +++ b/view/tpl/notifications_widget.tpl @@ -257,7 +257,7 @@ if(typeof sse_type === 'undefined') return; - if(followup || !manual || !($('#nav-' + sse_type + '-sub').hasClass('collapse') && $('#nav-' + sse_type + '-sub').hasClass('show'))) { + if(followup || !manual || !$('#notification-link-' + sse_type).hasClass('collapsed')) { if(sse_offset >= 0) { $("#nav-" + sse_type + "-loading").show(); @@ -287,9 +287,9 @@ sse_handleNotifications(obj, replace, followup); }); } - else + else { $("#nav-" + sse_type + "-loading").hide(); - + } } else { sessionStorage.removeItem('notification_open'); -- cgit v1.2.3