and even mroe polish

This commit is contained in:
John McLear 2015-02-09 18:36:11 +00:00
parent 8c6507e78c
commit 5245d2b797
3 changed files with 7 additions and 4 deletions

View file

@ -897,7 +897,7 @@ input[type=checkbox] {
#connectivity,
#users {
position: absolute;
top: 36px;
top: 38px;
right: 20px;
display: none;
z-index: 500;

View file

@ -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);

View file

@ -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");