Skip to content

Node.js based forum software built for the modern web

fix: mark-all read notifications button

Barış Soner Uşaklıc16f9d649532
diff --git a/public/src/modules/notifications.js b/public/src/modules/notifications.js
index 712b99ce98..f4806eafdf 100644
--- a/public/src/modules/notifications.js
+++ b/public/src/modules/notifications.js
@@ -59,7 +59,9 @@ define('notifications', [
const nid = notifEl.attr('data-nid');
markNotification(nid, true);
});
- components.get('notifications').on('click', '.mark-all-read', Notifications.markAllRead);
+ components.get('notifications').on('click', '.mark-all-read', () => {
+ Notifications.markAllRead();
+ });
Notifications.handleUnreadButton(notifList);