mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 06:55:46 +01:00
no need for ajaxify.end listener
This commit is contained in:
@@ -20,10 +20,8 @@ define('forum/chats', ['string', 'sounds', 'forum/infinitescroll'], function(S,
|
||||
Chats.addEventListeners();
|
||||
Chats.setActive();
|
||||
|
||||
$(window).on('action:ajaxify.end', function() {
|
||||
Chats.resizeMainWindow();
|
||||
Chats.scrollToBottom(containerEl);
|
||||
});
|
||||
Chats.resizeMainWindow();
|
||||
Chats.scrollToBottom($('.expanded-chat ul'));
|
||||
|
||||
Chats.initialised = true;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user