mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 15:35:47 +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.addEventListeners();
|
||||||
Chats.setActive();
|
Chats.setActive();
|
||||||
|
|
||||||
$(window).on('action:ajaxify.end', function() {
|
Chats.resizeMainWindow();
|
||||||
Chats.resizeMainWindow();
|
Chats.scrollToBottom($('.expanded-chat ul'));
|
||||||
Chats.scrollToBottom(containerEl);
|
|
||||||
});
|
|
||||||
|
|
||||||
Chats.initialised = true;
|
Chats.initialised = true;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user