v1.18.x
barisusakli 9 years ago
parent 90b89a488e
commit bc9c564650

@ -51,7 +51,7 @@ define('notifications', ['sounds', 'translator', 'components'], function(sound,
socket.emit('notifications.mark' + (unread ? 'Read' : 'Unread'), liEl.attr('data-nid'), function(err) { socket.emit('notifications.mark' + (unread ? 'Read' : 'Unread'), liEl.attr('data-nid'), function(err) {
if (err) { if (err) {
app.alertError(err.message); return app.alertError(err.message);
} }
liEl.toggleClass('unread'); liEl.toggleClass('unread');
@ -131,7 +131,7 @@ define('notifications', ['sounds', 'translator', 'components'], function(sound,
Notifications.updateNotifCount = function(count) { Notifications.updateNotifCount = function(count) {
var notifIcon = components.get('notifications/icon'); var notifIcon = components.get('notifications/icon');
count = Math.max(0, count);
if (count > 0) { if (count > 0) {
notifIcon.removeClass('fa-bell-o').addClass('fa-bell'); notifIcon.removeClass('fa-bell-o').addClass('fa-bell');
} else { } else {

Loading…
Cancel
Save