clear error on submit

This commit is contained in:
James Campos 2011-09-01 21:56:36 -07:00
parent cf386d0e72
commit 7f1618f977
2 changed files with 2 additions and 0 deletions

View File

@ -1306,6 +1306,7 @@
return this.nextSibling.textContent = captchas.length + ' captchas';
},
submit: function(e) {
$('.error', qr.el).textContent = '';
$('#challenge', QR.el).value = QR.captcha.challenge;
return $('#response', QR.el).value = $('#recaptcha_response_field', QR.el).value;
},

View File

@ -1034,6 +1034,7 @@ QR =
Recaptcha.reload()
@nextSibling.textContent = captchas.length + ' captchas'
submit: (e) ->
$('.error', qr.el).textContent = ''
$('#challenge', QR.el).value = QR.captcha.challenge
$('#response', QR.el).value = $('#recaptcha_response_field', QR.el).value
sys: ->