v1.18.x
psychobunny 10 years ago
parent f7f453f8cd
commit cfd66e5dd4

@ -12,7 +12,7 @@ define('forum/footer', ['notifications', 'chat'], function(Notifications, Chat)
return console.warn('Error updating unread count', err); return console.warn('Error updating unread count', err);
} }
$('#unread-count') $('#unread-count i')
.toggleClass('unread-count', count > 0) .toggleClass('unread-count', count > 0)
.attr('data-content', count > 20 ? '20+' : count); .attr('data-content', count > 20 ? '20+' : count);
} }
@ -43,7 +43,7 @@ define('forum/footer', ['notifications', 'chat'], function(Notifications, Chat)
} }
function increaseUnreadCount() { function increaseUnreadCount() {
var count = parseInt($('#unread-count').attr('data-content'), 10) + 1; var count = parseInt($('#unread-count i').attr('data-content'), 10) + 1;
updateUnreadTopicCount(null, count); updateUnreadTopicCount(null, count);
} }

Loading…
Cancel
Save