Restore captcha when autohidden QR comes back into focus.

This commit is contained in:
ccd0 2014-12-11 08:26:53 -08:00
parent 77aa3689ea
commit f870c6749c

View File

@ -121,6 +121,7 @@ QR =
QR.status()
QR.captcha.destroy()
focusin: ->
QR.captcha.setup() if $.hasClass(QR.nodes.el, 'autohide') and !$.hasClass(QR.nodes.el, 'focus')
$.addClass QR.nodes.el, 'focus'
focusout: ->
$.rmClass QR.nodes.el, 'focus'