Possible fix for bug causing scrolling to the top of the page.

This commit is contained in:
ccd0 2015-04-26 03:11:38 -07:00
parent e41c2bdd36
commit 5ec0dcdcad

View File

@ -33,7 +33,8 @@ Captcha.fixes =
focus = @images[0].tabIndex isnt 0
for img in @images
img.tabIndex = 0
@focusImage() if focus
if focus
$.queueTask => @focusImage()
focusImage: ->
# XXX Image is not focusable at first in Firefox; to be refactored when I figure out why.