From 6bc0e8de92b1b577ce3a8a363dce0072b62c79b5 Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Tue, 14 May 2013 08:57:11 -0700 Subject: [PATCH] close seaweedchan/issues/78 --- builds/4chan-X.js | 3 +++ builds/4chan-X.user.js | 3 +++ builds/crx/script.js | 3 +++ src/Posting/QuickReply.coffee | 1 + 4 files changed, 10 insertions(+) diff --git a/builds/4chan-X.js b/builds/4chan-X.js index 969f4f923..ae7193e91 100644 --- a/builds/4chan-X.js +++ b/builds/4chan-X.js @@ -4695,6 +4695,9 @@ return $.on($('a[title="Quote this post"]', this.nodes.info), 'click', QR.quote); }, persist: function() { + if (!QR.postingIsEnabled) { + return; + } QR.open(); if (Conf['Auto Hide QR']) { return QR.hide(); diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 412240054..13fac89bf 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -4679,6 +4679,9 @@ return $.on($('a[title="Quote this post"]', this.nodes.info), 'click', QR.quote); }, persist: function() { + if (!QR.postingIsEnabled) { + return; + } QR.open(); if (Conf['Auto Hide QR']) { return QR.hide(); diff --git a/builds/crx/script.js b/builds/crx/script.js index 6d2c71423..1c140f334 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -4682,6 +4682,9 @@ return $.on($('a[title="Quote this post"]', this.nodes.info), 'click', QR.quote); }, persist: function() { + if (!QR.postingIsEnabled) { + return; + } QR.open(); if (Conf['Auto Hide QR']) { return QR.hide(); diff --git a/src/Posting/QuickReply.coffee b/src/Posting/QuickReply.coffee index b627ce6c1..f216f69ec 100644 --- a/src/Posting/QuickReply.coffee +++ b/src/Posting/QuickReply.coffee @@ -72,6 +72,7 @@ QR = $.on $('a[title="Quote this post"]', @nodes.info), 'click', QR.quote persist: -> + return unless QR.postingIsEnabled QR.open() QR.hide() if Conf['Auto Hide QR'] open: ->