clear textarea on successful qr

This commit is contained in:
James Campos 2010-10-09 00:21:00 -07:00
parent b5d9d3bf1c
commit 64991aefaf
2 changed files with 6 additions and 4 deletions

View File

@ -424,7 +424,9 @@ iframeLoad = ->
className: 'error'
}
qr.appendChild(span)
else unless getConfig('Persistent QR') and REPLY
else if REPLY and getConfig('Persistent QR')
$('textarea', qr).value = ''
else
remove qr
window.location = 'javascript:Recaptcha.reload()'

View File

@ -464,10 +464,10 @@
className: 'error'
});
qr.appendChild(span);
} else if (REPLY && getConfig('Persistent QR')) {
$('textarea', qr).value = '';
} else {
if (!(getConfig('Persistent QR') && REPLY)) {
remove(qr);
}
remove(qr);
}
return (window.location = 'javascript:Recaptcha.reload()');
};