Don't auto-hide the QR when focusout-ing of the QR on Firefox.

This commit is contained in:
Mayhem 2013-08-15 01:24:21 +02:00
parent f42296483f
commit d73b3c9e39

View File

@ -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'