Clean the captcha input on error.

This commit is contained in:
Nicolas Stepien 2011-06-11 13:39:13 +02:00
parent b5873e778e
commit 7afe15724f
2 changed files with 2 additions and 0 deletions

View File

@ -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 {

View File

@ -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