fix issue with load of showuserandchat
parent
af7cd91a82
commit
f3e5682a0f
|
@ -22,6 +22,7 @@ var hooks = require('./pluginfw/hooks');
|
|||
var chat = (function()
|
||||
{
|
||||
var isStuck = false;
|
||||
var userAndChat = false;
|
||||
var gotInitialMessages = false;
|
||||
var historyPointer = 0;
|
||||
var chatMentions = 0;
|
||||
|
@ -56,13 +57,14 @@ var chat = (function()
|
|||
},
|
||||
chatAndUsers: function(fromInitialCall)
|
||||
{
|
||||
if(fromInitialCall || $('#options-chatandusers').prop('checked')){
|
||||
if(!userAndChat || fromInitialCall){
|
||||
padcookie.setPref("chatAndUsers", true);
|
||||
chat.stickToScreen(true);
|
||||
$('#options-stickychat').prop('checked', true)
|
||||
$('#options-stickychat').prop("disabled", "disabled");
|
||||
$('#users').addClass("chatAndUsers");
|
||||
$("#chatbox").addClass("chatAndUsersChat");
|
||||
userAndChat = true;
|
||||
}else{
|
||||
padcookie.setPref("chatAndUsers", false);
|
||||
$('#options-stickychat').prop("disabled", false);
|
||||
|
|
Loading…
Reference in New Issue