From 79f8b06edeb0c4bf99625a8947d8d2835dddc6da Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 19 Dec 2024 23:17:56 +0000 Subject: various fixes for the last commit --- view/tpl/notifications_widget.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'view/tpl') diff --git a/view/tpl/notifications_widget.tpl b/view/tpl/notifications_widget.tpl index 1ad054d37..cdef36eb3 100644 --- a/view/tpl/notifications_widget.tpl +++ b/view/tpl/notifications_widget.tpl @@ -487,7 +487,6 @@ } } - function sse_handleNotificationsItems(notifyType, data, replace, followup) { // Get the template, adjust based on the notification type @@ -544,7 +543,8 @@ } // Filter thread_top notifications if the filter is active - if (document.getElementById('tt-' + notifyType + '-only').classList.contains('active')) { + let filterThreadTop = document.getElementById('cn-' + notifyType + '-input'); + if (filterThreadTop && filterThreadTop.classList.contains('active')) { let notifications = notify_menu.querySelectorAll('[data-thread_top="false"]'); notifications.forEach(notification => notification.classList.add('tt-filter-active')); } -- cgit v1.2.3