From 6c639fe20f7376e9ff8d47f45a03f4727593b918 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Mon, 22 Dec 2014 09:39:38 -0800 Subject: [PATCH] Hide old captcha image while reloading. --- src/Posting/Captcha.noscript.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Posting/Captcha.noscript.coffee b/src/Posting/Captcha.noscript.coffee index da52fc20f..2f8bcf58b 100644 --- a/src/Posting/Captcha.noscript.coffee +++ b/src/Posting/Captcha.noscript.coffee @@ -187,6 +187,7 @@ Captcha.noscript = unless img img = @nodes.img = new Image $.one img, 'load', @afterSetup.bind @ + $.on img, 'load', -> @hidden = false $.add container, img img.src = src input.value = '' @@ -220,6 +221,7 @@ Captcha.noscript = reload: -> @nodes.iframe.src = @iframeURL @occupied = true + @nodes.img?.hidden = true keydown: (e) -> if e.keyCode is 8 and not @nodes.input.value