Added a way to closed the extended chat window

This commit is contained in:
Grant Woodford 2013-11-28 21:53:00 +02:00
parent 383a216a7d
commit d1367484e3

View file

@ -41,15 +41,15 @@ var chat = (function()
if(!isStuck || fromInitialCall) { // Stick it to if(!isStuck || fromInitialCall) { // Stick it to
padcookie.setPref("chatAlwaysVisible", true); padcookie.setPref("chatAlwaysVisible", true);
$('#chatbox').addClass("stickyChat"); $('#chatbox').addClass("stickyChat");
$('#titlesticky').hide(); $('#titlesticky').hide();
$('#editorcontainer').css({"right":"192px"}); $('#editorcontainer').css({"right":"192px"});
isStuck = true; isStuck = true;
} else { // Unstick it } else { // Unstick it
padcookie.setPref("chatAlwaysVisible", false); padcookie.setPref("chatAlwaysVisible", false);
$('#chatbox').removeClass("stickyChat"); $('#chatbox').removeClass("stickyChat");
$('#titlesticky').show(); $('#titlesticky').show();
$('#editorcontainer').css({"right":"0px"}); $('#editorcontainer').css({"right":"0px"});
isStuck = false; isStuck = false;
} }
}, },
hide: function () hide: function ()