Skip to content

Node.js based forum software built for the modern web

no need for ajaxify.end listener

barisusaklia73f34df4a2e
diff --git a/public/src/client/chats.js b/public/src/client/chats.js
index fe491b49c3..cde94aa71a 100644
--- a/public/src/client/chats.js
+++ b/public/src/client/chats.js
@@ -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;
};