prevent default redirect on switchs

This commit is contained in:
Barış Soner Uşaklı
2023-01-12 19:56:16 -05:00
parent e15642ef31
commit 423a44e18e

View File

@@ -8,6 +8,7 @@ define('forum/chats/recent', ['alerts'], function (alerts) {
require(['forum/chats'], function (Chats) {
$('[component="chat/recent"]').on('click', '[component="chat/recent/room"]', function () {
Chats.switchChat($(this).attr('data-roomid'));
return false;
});
$('[component="chat/recent"]').on('scroll', function () {