mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
semi working example
This commit is contained in:
parent
73d6030762
commit
63c65f784b
5 changed files with 45 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue