This commit is contained in:
psychobunny
2016-02-08 13:01:02 -05:00
parent c8d741a509
commit 46cfd03465
2 changed files with 3 additions and 3 deletions

View File

@@ -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() {

View File

@@ -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,