mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 16:27:27 +02:00
firing client-side hook on notification count update now
This commit is contained in:
@@ -123,6 +123,9 @@ define('notifications', ['sounds', 'translator', 'components'], function(sound,
|
||||
notifIcon.attr('data-content', count > 20 ? '20+' : count);
|
||||
|
||||
Tinycon.setBubble(count);
|
||||
$(window).trigger('action:notification.updateCount', {
|
||||
count: count
|
||||
});
|
||||
};
|
||||
|
||||
Notifications.markAllRead = function() {
|
||||
|
||||
Reference in New Issue
Block a user