v1.18.x
psychobunny 9 years ago
parent c8d741a509
commit 46cfd03465

@ -10,13 +10,13 @@ define('forum/footer', ['notifications', 'chat', 'components', 'translator'], fu
function updateUnreadTopicCount(count) {
$('#unread-count i')
.toggleClass('unread-count', count > 0)
.attr('data-content', count > 20 ? '20+' : count);
.attr('data-content', count > 99 ? '99+' : count);
}
function updateUnreadChatCount(count) {
components.get('chat/icon')
.toggleClass('unread-count', count > 0)
.attr('data-content', count > 20 ? '20+' : count);
.attr('data-content', count > 99 ? '99+' : count);
}
function initUnreadTopics() {

@ -139,7 +139,7 @@ define('notifications', ['sounds', 'translator', 'components'], function(sound,
}
notifIcon.toggleClass('unread-count', count > 0);
notifIcon.attr('data-content', count > 20 ? '20+' : count);
notifIcon.attr('data-content', count > 99 ? '99+' : count);
var payload = {
count: count,

Loading…
Cancel
Save