Restore captcha when autohidden QR comes back into focus.
This commit is contained in:
parent
77aa3689ea
commit
f870c6749c
@ -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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user