From 1b00d0f739ef627f3ca5811071c33d9fc05beb61 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Sun, 1 Feb 2015 20:29:57 -0500 Subject: [PATCH] fixed #2670 --- public/src/client/chats.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/public/src/client/chats.js b/public/src/client/chats.js index 56cba8c16e..607b84d4f3 100644 --- a/public/src/client/chats.js +++ b/public/src/client/chats.js @@ -18,10 +18,13 @@ define('forum/chats', ['string', 'sounds', 'forum/infinitescroll'], function(S, } Chats.addEventListeners(); - Chats.resizeMainWindow(); - Chats.scrollToBottom(containerEl); Chats.setActive(); + $(window).on('action:ajaxify.end', function() { + Chats.resizeMainWindow(); + Chats.scrollToBottom(containerEl); + }); + Chats.initialised = true; };