From 5ec0dcdcadcf2fcaf8be25b273c90a0dbc68d90b Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 26 Apr 2015 03:11:38 -0700 Subject: [PATCH] Possible fix for bug causing scrolling to the top of the page. --- src/Posting/Captcha.fixes.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Posting/Captcha.fixes.coffee b/src/Posting/Captcha.fixes.coffee index 062ab9b5d..888953cf6 100644 --- a/src/Posting/Captcha.fixes.coffee +++ b/src/Posting/Captcha.fixes.coffee @@ -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.