diff options
author | Peter 'Pita' Martischka <petermartischka@googlemail.com> | 2011-08-10 22:47:50 +0100 |
---|---|---|
committer | Peter 'Pita' Martischka <petermartischka@googlemail.com> | 2011-08-10 22:47:50 +0100 |
commit | 9cc3b543ccbdac7939072d268dc7d28106e9e3c4 (patch) | |
tree | a3f96c7b9583cac13ff73d4f09940ce14f779f87 /static/js/chat.js | |
parent | ce1012438ef836dacbd17f98f0617ad4d19f2786 (diff) | |
parent | 3c46cce341516238a0439a081d178f526541d675 (diff) | |
download | etherpad-lite-9cc3b543ccbdac7939072d268dc7d28106e9e3c4.zip |
Merge branch 'master' of git://github.com/Pita/etherpad-lite into api
Diffstat (limited to 'static/js/chat.js')
-rw-r--r-- | static/js/chat.js | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/static/js/chat.js b/static/js/chat.js index 3cd7e01b..f617bdb3 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) + { + $("#focusprotector").show(); + }, + stop: function (event, ui) + { + $("#focusprotector").hide(); + + $("#chatbox").css({right: "20px", bottom: "0px", left: "", top: ""}); + + self.scrollDown(); + } + }); }); }, hide: function () |