Work around new Recaptcha bug interfering with focusing on submit button.

This commit is contained in:
ccd0 2015-11-05 10:55:13 -08:00
parent 0cbd795fb9
commit 97a11034d1

View File

@ -145,6 +145,10 @@ Captcha.v2 =
QR.nodes.el.style.bottom = '0px'
iframe.focus() if @shouldFocus
@shouldFocus = false
# XXX Stop Recaptcha from changing focus from iframe -> body -> iframe on submit.
$.global ->
f = document.querySelector('#qr iframe')
f.focus = f.blur = ->
setupTextArea: (textarea) ->
$.one textarea, 'input', => @save true