chat/icon component

This commit is contained in:
psychobunny
2015-03-24 12:21:04 -04:00
parent f6d0ad9b0f
commit 705111a1d9

View File

@@ -22,7 +22,7 @@ define('forum/footer', ['notifications', 'chat'], function(Notifications, Chat)
return console.warn('Error updating unread count', err);
}
$('#chat-count')
components.get('chat/icon')
.toggleClass('unread-count', count > 0)
.attr('data-content', count > 20 ? '20+' : count);
}