From 82861c0d17239bb9d055540482f1af3d291b705b Mon Sep 17 00:00:00 2001 From: ccd0 Date: Thu, 25 Feb 2016 11:15:16 -0800 Subject: [PATCH] Recaptcha has changed the element where it listens for events selecting an image. --- src/Posting/Captcha.fixes.coffee | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Posting/Captcha.fixes.coffee b/src/Posting/Captcha.fixes.coffee index 4fe7adec6..1a7531f4a 100644 --- a/src/Posting/Captcha.fixes.coffee +++ b/src/Posting/Captcha.fixes.coffee @@ -3,7 +3,7 @@ Captcha.fixes = imageKeys16: '7890uiopjkl'.split('').concat(['Semicolon', 'm', 'Comma', 'Period', 'Slash']) css: ''' - .rc-imageselect-target > div:focus { + .rc-imageselect-target > div:focus, .rc-image-tile-target:focus { outline: 2px solid #4a90e2; } .rc-imageselect-target td:focus { @@ -85,7 +85,8 @@ Captcha.fixes = $.on $('.fbc-imageselect-challenge > form'), 'submit', @checkForm.bind(@) fixImages: -> - @images = $$ '.rc-imageselect-target > div, .rc-imageselect-target td' + @images = $$ '.rc-image-tile-target' + @images = $$ '.rc-imageselect-target > div, .rc-imageselect-target td' unless @images.length @width = $$('.rc-imageselect-target tr:first-of-type td').length or Math.round(Math.sqrt @images.length) for img in @images img.tabIndex = 0