Merge pull request #178 from MayhemYDG/captcha

Clean the captcha input on error.
This commit is contained in:
James Campos 2011-06-11 09:51:30 -07:00
commit 90ecf1bf17
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