From fa7eb381a10e67aa24fa56eef3a68c4a93c7f2f3 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 28 Feb 2015 22:32:42 -0800 Subject: [PATCH] Fix captcha count briefly showing over comment field as captcha opens. --- src/Posting/Captcha.v2.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Posting/Captcha.v2.coffee b/src/Posting/Captcha.v2.coffee index 66093edfb..68c484fd1 100644 --- a/src/Posting/Captcha.v2.coffee +++ b/src/Posting/Captcha.v2.coffee @@ -58,7 +58,6 @@ Captcha.v2 = setup: (focus, force) -> return unless @isEnabled and (@needed() or force) - $.addClass QR.nodes.el, 'captcha-open' @shouldFocus = true if focus if @timeouts.destroy clearTimeout @timeouts.destroy @@ -110,6 +109,7 @@ Captcha.v2 = setupIFrame: (iframe) -> @setupTime = Date.now() + $.addClass QR.nodes.el, 'captcha-open' if QR.nodes.el.getBoundingClientRect().bottom > doc.clientHeight QR.nodes.el.style.top = null QR.nodes.el.style.bottom = '0px'