Work around apparent Firefox bug preventing focusing on captcha iframe.
This commit is contained in:
parent
539b4bc636
commit
beaf66702b
@ -73,9 +73,11 @@ Captcha.v2 =
|
|||||||
return @reload()
|
return @reload()
|
||||||
|
|
||||||
if @nodes.container
|
if @nodes.container
|
||||||
if d.activeElement is @nodes.counter and (iframe = $ 'iframe', @nodes.container)
|
# XXX https://bugzilla.mozilla.org/show_bug.cgi?id=1226835
|
||||||
iframe.focus()
|
$.queueTask =>
|
||||||
QR.focus() # Event handler not fired in Firefox
|
if @nodes.container and d.activeElement is @nodes.counter and (iframe = $ 'iframe', @nodes.container)
|
||||||
|
iframe.focus()
|
||||||
|
QR.focus() # Event handler not fired in Firefox
|
||||||
return
|
return
|
||||||
|
|
||||||
@nodes.container = $.el 'div', className: 'captcha-container'
|
@nodes.container = $.el 'div', className: 'captcha-container'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user