From c259e0407e175260de40ee00929870b105f2d486 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 9 Jul 2014 11:03:32 -0400 Subject: [PATCH] closed #1807 --- public/src/modules/chat.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/public/src/modules/chat.js b/public/src/modules/chat.js index fa6e605ec4..bd251561f2 100644 --- a/public/src/modules/chat.js +++ b/public/src/modules/chat.js @@ -202,10 +202,16 @@ define('chat', ['taskbar', 'string', 'sounds', 'forum/chats'], function(taskbar, module.close(chatModal); }); + chatModal.find('button[data-action="maximize"]').on('click', function() { + ajaxify.go('chats/' + username); + module.close(chatModal); + }); + chatModal.on('click', function(e) { module.bringModalToTop(chatModal); }); + addSendHandler(chatModal); getChatMessages(chatModal, function() {