firing client-side hook on notification count update now

This commit is contained in:
Julian Lam
2016-01-19 09:26:44 -05:00
parent 46c3e5c126
commit f18382a892

View File

@@ -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() {