From d81255744536e5f23fff4c19f10c5fcdb60d7f69 Mon Sep 17 00:00:00 2001 From: Peter 'Pita' Martischka Date: Wed, 10 Aug 2011 18:06:22 +0100 Subject: [PATCH] fixed #73 --- static/js/chat.js | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/static/js/chat.js b/static/js/chat.js index 3cd7e01b..e3cfd5ad 100644 --- a/static/js/chat.js +++ b/static/js/chat.js @@ -3,16 +3,29 @@ var chat = (function() var self = { show: function () { - $("#chaticon").hide("slide", { direction: "down" }, 500, function() + $("#chaticon").hide("slide", { + direction: "down" + }, 500, function () { - $("#chatbox").show("slide", { direction: "down" }, 750, self.scrollDown); - $("#chatbox").resizable({ handles: 'nw', start: function(event,ui){ - $("#editorcontainer").hide(); - }, stop: function(event,ui){ - $("#editorcontainer").show(); - self.scrollDown(); - }}); - + $("#chatbox").show("slide", { + direction: "down" + }, 750, self.scrollDown); + $("#chatbox").resizable( + { + handles: 'nw', + start: function (event, ui) + { + $("#editorcontainer").hide(); + }, + stop: function (event, ui) + { + $("#editorcontainer").show(); + + $("#chatbox").css({right: "20px", bottom: "0px", left: "", top: ""}); + + self.scrollDown(); + } + }); }); }, hide: function ()