From f18382a8922993b4c2dcaa6ec518844819818109 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 19 Jan 2016 09:26:44 -0500 Subject: [PATCH] firing client-side hook on notification count update now --- public/src/modules/notifications.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/src/modules/notifications.js b/public/src/modules/notifications.js index d3579b60ae..e8649248e0 100644 --- a/public/src/modules/notifications.js +++ b/public/src/modules/notifications.js @@ -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() {