aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-12-19 23:17:56 +0000
committerMario <mario@mariovavti.com>2024-12-19 23:17:56 +0000
commit79f8b06edeb0c4bf99625a8947d8d2835dddc6da (patch)
treec2eb63efcaec7a247746180845517dc0eccf4fa5 /view/tpl
parenta2dde34b1be35282618035652f919c39199beea1 (diff)
downloadvolse-hubzilla-79f8b06edeb0c4bf99625a8947d8d2835dddc6da.tar.gz
volse-hubzilla-79f8b06edeb0c4bf99625a8947d8d2835dddc6da.tar.bz2
volse-hubzilla-79f8b06edeb0c4bf99625a8947d8d2835dddc6da.zip
various fixes for the last commit
Diffstat (limited to 'view/tpl')
-rw-r--r--view/tpl/notifications_widget.tpl4
1 files changed, 2 insertions, 2 deletions
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'));
}