From 8570d5e63d9b6c7c4157f3744363437bd18ec200 Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Sun, 18 Aug 2013 10:34:52 -0700 Subject: [PATCH] Attempt to fix QR not clearing successfully --- builds/4chan-X.user.js | 4 +++- builds/crx/script.js | 4 +++- src/Posting/QuickReply.coffee | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 7950a0317..fd955625b 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -5085,7 +5085,9 @@ d.activeElement.blur(); $.rmClass(QR.nodes.el, 'dump'); if (!Conf['Captcha Warning Notifications']) { - $.rmClass(QR.captcha.nodes.input, 'error'); + if (QR.captcha.isEnabled) { + $.rmClass(QR.captcha.nodes.input, 'error'); + } } if (Conf['QR Shortcut']) { $.toggleClass($('.qr-shortcut'), 'disabled'); diff --git a/builds/crx/script.js b/builds/crx/script.js index 08a211fdd..1486a1eeb 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -5093,7 +5093,9 @@ d.activeElement.blur(); $.rmClass(QR.nodes.el, 'dump'); if (!Conf['Captcha Warning Notifications']) { - $.rmClass(QR.captcha.nodes.input, 'error'); + if (QR.captcha.isEnabled) { + $.rmClass(QR.captcha.nodes.input, 'error'); + } } if (Conf['QR Shortcut']) { $.toggleClass($('.qr-shortcut'), 'disabled'); diff --git a/src/Posting/QuickReply.coffee b/src/Posting/QuickReply.coffee index 7ba89a224..a77a29ac0 100755 --- a/src/Posting/QuickReply.coffee +++ b/src/Posting/QuickReply.coffee @@ -99,7 +99,7 @@ QR = d.activeElement.blur() $.rmClass QR.nodes.el, 'dump' unless Conf['Captcha Warning Notifications'] - $.rmClass QR.captcha.nodes.input, 'error' + $.rmClass QR.captcha.nodes.input, 'error' if QR.captcha.isEnabled if Conf['QR Shortcut'] $.toggleClass $('.qr-shortcut'), 'disabled' new QR.post true