mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-14 11:06:55 -04:00
Chat: avoid inline onclick handler to support jQuery 3.4+
This commit is contained in:
parent
f0a39b0595
commit
5906afbc2e
3 changed files with 5 additions and 1 deletions
|
@ -47,6 +47,9 @@ exports.chat = (() => {
|
|||
},
|
||||
// Make chat stick to right hand side of screen
|
||||
stickToScreen(fromInitialCall) {
|
||||
if ($('#options-stickychat').prop('checked')) {
|
||||
$('#options-stickychat').prop('checked', false);
|
||||
}
|
||||
if (pad.settings.hideChat) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -412,6 +412,7 @@ const pad = {
|
|||
setTimeout(() => {
|
||||
padeditor.ace.focus();
|
||||
}, 0);
|
||||
$('#options-stickychat').on('click', () => { chat.stickToScreen(); });
|
||||
// if we have a cookie for always showing chat then show it
|
||||
if (padcookie.getPref('chatAlwaysVisible')) {
|
||||
chat.stickToScreen(true); // stick it to the screen
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue