Include Recaptcha popup bubble in QR focus test.
This commit is contained in:
parent
0a3bf24570
commit
d747b3de12
@ -133,7 +133,10 @@ QR =
|
||||
focus: ->
|
||||
$.queueTask ->
|
||||
return unless QR.nodes
|
||||
focus = d.activeElement and QR.nodes.el.contains d.activeElement
|
||||
focus = d.activeElement and (
|
||||
QR.nodes.el.contains(d.activeElement) or
|
||||
d.activeElement.nodeName is 'IFRAME' and /^https:\/\/www\.google\.com\/recaptcha\//.test(d.activeElement.src)
|
||||
)
|
||||
if $.hasClass(QR.nodes.el, 'autohide') and focus isnt $.hasClass(QR.nodes.el, 'focus')
|
||||
QR.captcha[if focus then 'setup' else 'destroy']()
|
||||
$[if focus then 'addClass' else 'rmClass'] QR.nodes.el, 'focus'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user