Chat: avoid inline onclick handler to support jQuery 3.4+

This commit is contained in:
webzwo0i 2021-07-07 02:30:12 +02:00 committed by SamTV12345
parent f0a39b0595
commit 5906afbc2e
3 changed files with 5 additions and 1 deletions

View file

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