You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
541 B
JavaScript
25 lines
541 B
JavaScript
'use strict';
|
|
|
|
|
|
define('forum/footer', [
|
|
'components',
|
|
'translator',
|
|
'forum/unread',
|
|
'forum/header/notifications',
|
|
'forum/header/chat',
|
|
], function (components, translator, Unread, Notifications, Chat) {
|
|
Notifications.prepareDOM();
|
|
Chat.prepareDOM();
|
|
translator.prepareDOM();
|
|
|
|
socket.on('event:unread.updateChatCount', function (count) {
|
|
components.get('chat/icon')
|
|
.toggleClass('unread-count', count > 0)
|
|
.attr('data-content', count > 99 ? '99+' : count);
|
|
});
|
|
|
|
if (app.user.uid > 0) {
|
|
Unread.initUnreadTopics();
|
|
}
|
|
});
|