and even mroe polish
This commit is contained in:
parent
8c6507e78c
commit
5245d2b797
|
@ -897,7 +897,7 @@ input[type=checkbox] {
|
|||
#connectivity,
|
||||
#users {
|
||||
position: absolute;
|
||||
top: 36px;
|
||||
top: 38px;
|
||||
right: 20px;
|
||||
display: none;
|
||||
z-index: 500;
|
||||
|
|
|
@ -22,7 +22,6 @@ var hooks = require('./pluginfw/hooks');
|
|||
var chat = (function()
|
||||
{
|
||||
var isStuck = false;
|
||||
var userAndChat = false;
|
||||
var gotInitialMessages = false;
|
||||
var historyPointer = 0;
|
||||
var chatMentions = 0;
|
||||
|
@ -58,14 +57,15 @@ var chat = (function()
|
|||
chatAndUsers: function(fromInitialCall)
|
||||
{
|
||||
var toEnable = $('#options-chatandusers').is(":checked");
|
||||
if(toEnable || !userAndChat || fromInitialCall){
|
||||
if(toEnable || 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;
|
||||
// redraw
|
||||
padeditbar.redrawHeight()
|
||||
}else{
|
||||
padcookie.setPref("chatAndUsers", false);
|
||||
$('#options-stickychat').prop("disabled", false);
|
||||
|
|
|
@ -187,6 +187,9 @@ var padeditbar = (function()
|
|||
|
||||
$('#editorcontainer').css("top", containerTop);
|
||||
|
||||
// make sure pop ups are in the right place
|
||||
$('.popup').css("top", $('#editorcontainer').offset().top + "px");
|
||||
|
||||
// If sticky chat is enabled..
|
||||
if($('#options-stickychat').is(":checked")){
|
||||
$('#chatbox').css("top", $('#editorcontainer').offset().top + "px");
|
||||
|
|
Loading…
Reference in New Issue