Possible fix for bug causing scrolling to the top of the page.
This commit is contained in:
parent
e41c2bdd36
commit
5ec0dcdcad
@ -33,7 +33,8 @@ Captcha.fixes =
|
|||||||
focus = @images[0].tabIndex isnt 0
|
focus = @images[0].tabIndex isnt 0
|
||||||
for img in @images
|
for img in @images
|
||||||
img.tabIndex = 0
|
img.tabIndex = 0
|
||||||
@focusImage() if focus
|
if focus
|
||||||
|
$.queueTask => @focusImage()
|
||||||
|
|
||||||
focusImage: ->
|
focusImage: ->
|
||||||
# XXX Image is not focusable at first in Firefox; to be refactored when I figure out why.
|
# XXX Image is not focusable at first in Firefox; to be refactored when I figure out why.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user