v1.18.x
Barış Soner Uşaklı 7 years ago
parent e1df8bd0f0
commit 51bd30fe92

@ -455,7 +455,7 @@ define('forum/chats', [
if (ajaxify.data.roomId) { if (ajaxify.data.roomId) {
socket.emit('modules.chats.markRead', ajaxify.data.roomId); socket.emit('modules.chats.markRead', ajaxify.data.roomId);
$('[data-roomid="' + ajaxify.data.roomId + '"]').toggleClass('unread', false); $('[data-roomid="' + ajaxify.data.roomId + '"]').toggleClass('unread', false);
$('.expanded-chat input').focus(); $('.expanded-chat [component="chat/input"]').focus();
} }
$('.chats-list li').removeClass('bg-info'); $('.chats-list li').removeClass('bg-info');
$('.chats-list li[data-roomid="' + ajaxify.data.roomId + '"]').addClass('bg-info'); $('.chats-list li[data-roomid="' + ajaxify.data.roomId + '"]').addClass('bg-info');

Loading…
Cancel
Save