From d73b3c9e39024a816cb62aea3669480914d6c87e Mon Sep 17 00:00:00 2001 From: Mayhem Date: Thu, 15 Aug 2013 01:24:21 +0200 Subject: [PATCH] Don't auto-hide the QR when focusout-ing of the QR on Firefox. --- src/Posting/QR.coffee | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index 77a96cdb1..b66743322 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -82,7 +82,13 @@ QR = focusin: -> $.addClass QR.nodes.el, 'has-focus' focusout: -> + <% if (type === 'crx') { %> $.rmClass QR.nodes.el, 'has-focus' + <% } else { %> + $.queueTask -> + return if $.x 'ancestor::div[@id="qr"]', d.activeElement + $.rmClass QR.nodes.el, 'has-focus' + <% } %> hide: -> d.activeElement.blur() $.addClass QR.nodes.el, 'autohide'