mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
notifications/icon component
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user