mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
fix JS error in timeslider if offset doesn't exist
This commit is contained in:
parent
26ae375727
commit
0ad09c17db
1 changed files with 9 additions and 3 deletions
|
@ -188,16 +188,22 @@ var padeditbar = (function()
|
||||||
$('#editorcontainer').css("top", containerTop);
|
$('#editorcontainer').css("top", containerTop);
|
||||||
|
|
||||||
// make sure pop ups are in the right place
|
// make sure pop ups are in the right place
|
||||||
$('.popup').css("top", $('#editorcontainer').offset().top + "px");
|
if($('#editorcontainer').offset()){
|
||||||
|
$('.popup').css("top", $('#editorcontainer').offset().top + "px");
|
||||||
|
}
|
||||||
|
|
||||||
// If sticky chat is enabled..
|
// If sticky chat is enabled..
|
||||||
if($('#options-stickychat').is(":checked")){
|
if($('#options-stickychat').is(":checked")){
|
||||||
$('#chatbox').css("top", $('#editorcontainer').offset().top + "px");
|
if($('#editorcontainer').offset()){
|
||||||
|
$('#chatbox').css("top", $('#editorcontainer').offset().top + "px");
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// If chat and Users is enabled..
|
// If chat and Users is enabled..
|
||||||
if($('#options-chatandusers').is(":checked")){
|
if($('#options-chatandusers').is(":checked")){
|
||||||
$('#users').css("top", $('#editorcontainer').offset().top + "px");
|
if($('#editorcontainer').offset()){
|
||||||
|
$('#users').css("top", $('#editorcontainer').offset().top + "px");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue