From 049f75b7892b542e289eb3555a92d97785ec7e0a Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Tue, 27 Sep 2011 02:57:53 +0200 Subject: [PATCH] Should fix some keybinds --- 4chan_x.user.js | 8 ++++---- script.coffee | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index e8c2161fd..3b33e9ee1 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -890,8 +890,8 @@ case conf.close: if (o = $('#overlay')) { $.rm(o); - } else if (qr.el) { - qr.close(); + } else if (QR.qr) { + QR.close(); } break; case conf.spoiler: @@ -965,8 +965,8 @@ } break; case conf.submit: - if (qr.el) { - qr.submit.call($('form', qr.el)); + if (QR.qr) { + QR.submit.call($('form', QR.qr)); } else { $('.postarea form').submit(); } diff --git a/script.coffee b/script.coffee index 9a6db362c..373f21b61 100644 --- a/script.coffee +++ b/script.coffee @@ -625,8 +625,8 @@ keybinds = when conf.close if o = $ '#overlay' $.rm o - else if qr.el - qr.close() + else if QR.qr + QR.close() when conf.spoiler ta = e.target return unless ta.nodeName is 'TEXTAREA' @@ -677,8 +677,8 @@ keybinds = when conf.previousPage $('input[value=Previous]')?.click() when conf.submit - if qr.el - qr.submit.call $ 'form', qr.el + if QR.qr + QR.submit.call $ 'form', QR.qr else $('.postarea form').submit() when conf.unreadCountTo0