From f27b240b6e2d570f96900236fd14a2be00c008e2 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Mon, 22 Jun 2015 23:43:57 -0700 Subject: [PATCH] This ought to set the tabindex on the captcha, but for some reason it doesn't. --- src/Posting/Captcha.replace.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Posting/Captcha.replace.coffee b/src/Posting/Captcha.replace.coffee index 418efb6cb..d98aa709c 100644 --- a/src/Posting/Captcha.replace.coffee +++ b/src/Posting/Captcha.replace.coffee @@ -34,7 +34,9 @@ Captcha.replace = return unless old = $.id 'captchaContainerAlt' container = $.el 'div', className: 'g-recaptcha' - container.dataset.sitekey = '<%= meta.recaptchaKey %>' + $.extend container.dataset, + sitekey: '<%= meta.recaptchaKey %>' + tabindex: 3 $.replace old, container url = 'https://www.google.com/recaptcha/api.js' if lang = Conf['captchaLanguage'].trim()