Clean the captcha input on error.
This commit is contained in:
parent
b5873e778e
commit
7afe15724f
@ -1106,6 +1106,7 @@
|
||||
data = e.data;
|
||||
dialog = $('#qr');
|
||||
if (data) {
|
||||
$('input[name=recaptcha_response_field]', dialog).value = '';
|
||||
$('#error').textContent = data;
|
||||
qr.autohide.unset();
|
||||
} else {
|
||||
|
||||
@ -857,6 +857,7 @@ qr =
|
||||
{data} = e
|
||||
dialog = $ '#qr'
|
||||
if data # error message
|
||||
$('input[name=recaptcha_response_field]', dialog).value = ''
|
||||
$('#error').textContent = data
|
||||
qr.autohide.unset()
|
||||
else # success
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user