semi working example

This commit is contained in:
John McLear 2015-01-19 01:45:49 +00:00
parent 73d6030762
commit 63c65f784b
5 changed files with 45 additions and 0 deletions

View file

@ -54,6 +54,20 @@ var chat = (function()
isStuck = false;
}
},
chatAndUsers: function(status){
if(status || $('#options-chatandusers').prop('checked')){
padcookie.setPref("chatAndUsers", true);
chat.stickToScreen(true);
$('#options-stickychat').prop("disabled", "disabled");
$('#users').addClass("chatAndUsers");
$("#chatbox").addClass("chatAndUsersChat");
}else{
chat.stickToScreen(false);
$('#options-stickychat').prop("disabled", false);
$('#users').removeClass("chatAndUsers");
$("#chatbox").removeClass("chatAndUsersChat");
}
},
hide: function ()
{
// decide on hide logic based on chat window being maximized or not