diff --git a/4chan_x.user.js b/4chan_x.user.js index 8dbd699b0..b7a0d24c7 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -900,7 +900,7 @@ case conf.close: if (o = $('#overlay')) { $.rm(o); - } else if (qr.qr) { + } else if (qr.el) { qr.close(); } break; @@ -969,8 +969,8 @@ if ((_ref3 = $('input[value=Previous]')) != null) _ref3.click(); break; case conf.submit: - if (qr.qr) { - qr.submit.call($('form', qr.qr)); + if (qr.el) { + qr.submit.call($('form', qr.el)); } else { $('.postarea form').submit(); } @@ -1068,8 +1068,8 @@ if (quote) { return qr.quote.call($('.quotejs + a', $('.replyhl', thread) || thread)); } else { - if (qr.qr) { - return $('textarea', qr.qr).focus(); + if (qr.el) { + return $('textarea', qr.el).focus(); } else { return qr.dialog('', thread != null ? thread.firstChild.id : void 0); } diff --git a/script.coffee b/script.coffee index 1c9cd7a59..c58abc191 100644 --- a/script.coffee +++ b/script.coffee @@ -645,7 +645,7 @@ keybinds = when conf.close if o = $ '#overlay' $.rm o - else if qr.qr + else if qr.el qr.close() when conf.spoiler ta = e.target @@ -697,8 +697,8 @@ keybinds = when conf.previousPage $('input[value=Previous]')?.click() when conf.submit - if qr.qr - qr.submit.call $ 'form', qr.qr + if qr.el + qr.submit.call $ 'form', qr.el else $('.postarea form').submit() when conf.unreadCountTo0 @@ -745,8 +745,8 @@ keybinds = if quote qr.quote.call $ '.quotejs + a', $('.replyhl', thread) or thread else - if qr.qr - $('textarea', qr.qr).focus() + if qr.el + $('textarea', qr.el).focus() else qr.dialog '', thread?.firstChild.id