mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: autocomplete not triggered if chat switched
This commit is contained in:
@@ -28,7 +28,6 @@ define('forum/chats', [
|
|||||||
recentChats.init();
|
recentChats.init();
|
||||||
|
|
||||||
Chats.addEventListeners();
|
Chats.addEventListeners();
|
||||||
Chats.createAutoComplete($('[component="chat/input"]'));
|
|
||||||
Chats.resizeMainWindow();
|
Chats.resizeMainWindow();
|
||||||
|
|
||||||
if (env === 'md' || env === 'lg') {
|
if (env === 'md' || env === 'lg') {
|
||||||
@@ -59,6 +58,7 @@ define('forum/chats', [
|
|||||||
Chats.addScrollHandler(ajaxify.data.roomId, ajaxify.data.uid, $('.chat-content'));
|
Chats.addScrollHandler(ajaxify.data.roomId, ajaxify.data.uid, $('.chat-content'));
|
||||||
Chats.addCharactersLeftHandler($('[component="chat/main-wrapper"]'));
|
Chats.addCharactersLeftHandler($('[component="chat/main-wrapper"]'));
|
||||||
Chats.addIPHandler($('[component="chat/main-wrapper"]'));
|
Chats.addIPHandler($('[component="chat/main-wrapper"]'));
|
||||||
|
Chats.createAutoComplete($('[component="chat/input"]'));
|
||||||
|
|
||||||
$('[data-action="close"]').on('click', function () {
|
$('[data-action="close"]').on('click', function () {
|
||||||
Chats.switchChat();
|
Chats.switchChat();
|
||||||
|
|||||||
Reference in New Issue
Block a user