Fix captcha not reloading when fallback captcha was invoked.

This commit is contained in:
ccd0 2015-11-20 12:37:27 -08:00
parent a78ac7530c
commit 013562cdbe

View File

@ -225,6 +225,9 @@ Captcha.v2 =
reload: -> reload: ->
if @noscript if @noscript
$('iframe', @nodes.container).src = @noscriptURL() $('iframe', @nodes.container).src = @noscriptURL()
else if $ 'iframe[src^="https://www.google.com/recaptcha/api/fallback?"]', @nodes.container
@destroy()
@setup false, true
else else
$.globalEval ''' $.globalEval '''
(function() { (function() {