From dac4ccbeadffc8fcc5a67084b302cee5ac246c79 Mon Sep 17 00:00:00 2001 From: Mayhem Date: Fri, 31 Jan 2014 23:30:54 +0100 Subject: [PATCH] Hide the persistent QR in the catalog. --- src/Posting/QR.coffee | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index 2eed475ff..acc79a1c7 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -50,14 +50,13 @@ QR = else QR.status() - QR.persist() if Conf['Persistent QR'] + return unless Conf['Persistent QR'] + QR.open() + QR.hide() if Conf['Auto-Hide QR'] or g.VIEW is 'catalog' or g.VIEW is 'index' and Conf['Index Mode'] is 'catalog' node: -> $.on $('a[title="Quote this post"]', @nodes.info), 'click', QR.quote - persist: -> - QR.open() - QR.hide() if Conf['Auto-Hide QR'] or g.VIEW is 'catalog' open: -> if QR.nodes QR.nodes.el.hidden = false