From 903ebad81582fad15eac25d39d7b473275c2b149 Mon Sep 17 00:00:00 2001 From: Kabir Sala Date: Tue, 25 Feb 2014 13:25:59 +0100 Subject: [PATCH] Respect Auto Hide QR in the catalog --- builds/4chan-X.user.js | 5 ++++- builds/crx/script.js | 5 ++++- src/Posting/QR.coffee | 3 ++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 24e2dfd54..b379897a5 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -5664,7 +5664,10 @@ return { catalog: function() { if (Conf["Persistent QR"]) { - return QR.open(); + QR.open(); + } + if (Conf['Auto Hide QR']) { + return QR.hide(); } }, index: function() { diff --git a/builds/crx/script.js b/builds/crx/script.js index 188ceb7d6..510ecffa6 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -5699,7 +5699,10 @@ return { catalog: function() { if (Conf["Persistent QR"]) { - return QR.open(); + QR.open(); + } + if (Conf['Auto Hide QR']) { + return QR.hide(); } }, index: function() { diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index c7b2f652e..18b8c806d 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -72,7 +72,8 @@ QR = $.on d, 'dragstart dragend', QR.drag { catalog: -> - QR.open() if Conf["Persistent QR"] + QR.open() if Conf["Persistent QR"] + QR.hide() if Conf['Auto Hide QR'] index: -> $.on d, 'IndexRefresh', QR.generatePostableThreadsList thread: ->