slightly cleaner
parent
252be19885
commit
3be1ee5967
|
@ -43,8 +43,7 @@ var chat = (function()
|
||||||
$('#chatbox').addClass("stickyChat");
|
$('#chatbox').addClass("stickyChat");
|
||||||
$('#chattext').css({"top":"0px"});
|
$('#chattext').css({"top":"0px"});
|
||||||
$('#editorcontainer').css({"right":"192px"});
|
$('#editorcontainer').css({"right":"192px"});
|
||||||
var editorcontainerTop = $('#editorcontainer').offset().top;
|
$('.stickyChat').css("top",$('#editorcontainer').offset().top+"px");
|
||||||
$('.stickyChat').css("top",editorcontainerTop+"px");
|
|
||||||
isStuck = true;
|
isStuck = true;
|
||||||
} else { // Unstick it
|
} else { // Unstick it
|
||||||
padcookie.setPref("chatAlwaysVisible", false);
|
padcookie.setPref("chatAlwaysVisible", false);
|
||||||
|
|
Loading…
Reference in New Issue