From 19c9ce58a181aeaa43343add2758dcac09131a20 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Mon, 6 Feb 2017 22:08:02 -0800 Subject: [PATCH] Don't autohide QR while uploading is in progress. #222 --- src/Posting/QR.coffee | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index e3e658c24..062d044c2 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -636,11 +636,6 @@ QR = # Enable auto-posting if we have stuff to post, disable it otherwise. QR.cooldown.auto = QR.posts.length > 1 - if Conf['Auto Hide QR'] and !QR.cooldown.auto - QR.hide() - if !QR.cooldown.auto and $.x 'ancestor::div[@id="qr"]', d.activeElement - # Unfocus the focused element if it is one within the QR and we're not auto-posting. - d.activeElement.blur() post.lock() @@ -767,11 +762,17 @@ QR = lastPostToThread = not (do -> return true for p in QR.posts[1..] when p.thread is post.thread) - unless Conf['Persistent QR'] or postsCount - QR.close() - else + if postsCount post.rm() QR.captcha.setup(d.activeElement is QR.nodes.status) + else if Conf['Persistent QR'] + post.rm() + if Conf['Auto Hide QR'] + QR.hide() + else + QR.blur() + else + QR.close() QR.cleanNotifications() if Conf['Posting Success Notifications']