Node.js based forum software built for the modern web
notifications/icon component
psychobunnyb10a7d44105f
diff --git a/public/src/modules/notifications.js b/public/src/modules/notifications.jsindex d7d6cf79b1..4f4f7ab876 100644--- a/public/src/modules/notifications.js+++ b/public/src/modules/notifications.js@@ -9,7 +9,7 @@ define('notifications', ['sounds', 'translator'], function(sound, translator) {var notifContainer = $('.notifications'),notifTrigger = notifContainer.children('a'),notifList = $('#notif-list'),- notifIcon = $('.notification-icon');+ notifIcon = components.get('notifications/icon');notifTrigger.on('click', function(e) {e.preventDefault();@@ -119,7 +119,7 @@ define('notifications', ['sounds', 'translator'], function(sound, translator) {};Notifications.updateNotifCount = function(count) {- var notifIcon = $('.notification-icon');+ var notifIcon = components.get('notifications/icon');if (count > 0) {notifIcon.removeClass('fa-bell-o').addClass('fa-bell');