fix sticky chat... dont like where i put the call but it will have to do cause im tired.
This commit is contained in:
parent
a449876f80
commit
2fd1702960
|
@ -429,7 +429,7 @@ var pad = {
|
||||||
|
|
||||||
// order of inits is important here:
|
// order of inits is important here:
|
||||||
padcookie.init(clientVars.cookiePrefsToSet, this);
|
padcookie.init(clientVars.cookiePrefsToSet, this);
|
||||||
|
|
||||||
$("#widthprefcheck").click(pad.toggleWidthPref);
|
$("#widthprefcheck").click(pad.toggleWidthPref);
|
||||||
// $("#sidebarcheck").click(pad.togglewSidebar);
|
// $("#sidebarcheck").click(pad.togglewSidebar);
|
||||||
|
|
||||||
|
@ -484,6 +484,10 @@ var pad = {
|
||||||
{
|
{
|
||||||
padeditor.ace.focus();
|
padeditor.ace.focus();
|
||||||
}, 0);
|
}, 0);
|
||||||
|
if(padcookie.getPref("chatAlwaysVisible")){ // if we have a cookie for always showing chat then show it
|
||||||
|
chat.stickToScreen(true); // stick it to the screen
|
||||||
|
$('#options-stickychat').prop("checked", true); // set the checkbox to on
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
dispose: function()
|
dispose: function()
|
||||||
|
@ -979,3 +983,4 @@ exports.handshake = handshake;
|
||||||
exports.pad = pad;
|
exports.pad = pad;
|
||||||
exports.init = init;
|
exports.init = init;
|
||||||
exports.alertBar = alertBar;
|
exports.alertBar = alertBar;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue