reload captcha AFTER removing qr
This commit is contained in:
parent
a7ae9f1e07
commit
b5d9d3bf1c
@ -416,8 +416,6 @@ iframeLoad = ->
|
|||||||
return
|
return
|
||||||
$('iframe').src = 'about:blank'
|
$('iframe').src = 'about:blank'
|
||||||
|
|
||||||
window.location = 'javascript:Recaptcha.reload()'
|
|
||||||
|
|
||||||
qr = $('#qr')
|
qr = $('#qr')
|
||||||
if error = GM_getValue('error')
|
if error = GM_getValue('error')
|
||||||
$('form', qr).style.visibility = ''
|
$('form', qr).style.visibility = ''
|
||||||
@ -429,6 +427,8 @@ iframeLoad = ->
|
|||||||
else unless getConfig('Persistent QR') and REPLY
|
else unless getConfig('Persistent QR') and REPLY
|
||||||
remove qr
|
remove qr
|
||||||
|
|
||||||
|
window.location = 'javascript:Recaptcha.reload()'
|
||||||
|
|
||||||
|
|
||||||
submit = (e) ->
|
submit = (e) ->
|
||||||
if span = @nextSibling
|
if span = @nextSibling
|
||||||
|
|||||||
@ -456,7 +456,6 @@
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
$('iframe').src = 'about:blank';
|
$('iframe').src = 'about:blank';
|
||||||
window.location = 'javascript:Recaptcha.reload()';
|
|
||||||
qr = $('#qr');
|
qr = $('#qr');
|
||||||
if (error = GM_getValue('error')) {
|
if (error = GM_getValue('error')) {
|
||||||
$('form', qr).style.visibility = '';
|
$('form', qr).style.visibility = '';
|
||||||
@ -464,10 +463,13 @@
|
|||||||
textContent: error,
|
textContent: error,
|
||||||
className: 'error'
|
className: 'error'
|
||||||
});
|
});
|
||||||
return qr.appendChild(span);
|
qr.appendChild(span);
|
||||||
} else {
|
} else {
|
||||||
return !(getConfig('Persistent QR') && REPLY) ? remove(qr) : null;
|
if (!(getConfig('Persistent QR') && REPLY)) {
|
||||||
|
remove(qr);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
return (window.location = 'javascript:Recaptcha.reload()');
|
||||||
};
|
};
|
||||||
submit = function(e) {
|
submit = function(e) {
|
||||||
var _ref2, _ref3, recaptcha, span;
|
var _ref2, _ref3, recaptcha, span;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user