fix captcha img derp

This commit is contained in:
James Campos 2011-09-03 13:41:04 -07:00
parent a10cac59f7
commit daa1e0da3a
2 changed files with 4 additions and 2 deletions

View File

@ -1294,7 +1294,9 @@
captchaNode: function(e) {
var c;
c = e.target.value;
$('img', QR.qr).src = "http://www.google.com/recaptcha/api/image?c=" + c;
if (QR.qr) {
$('img', QR.qr).src = "http://www.google.com/recaptcha/api/image?c=" + c;
}
return QR.captcha = {
challenge: c,
time: Date.now()

View File

@ -1010,7 +1010,7 @@ QR =
$.replace oldFile, file
captchaNode: (e) ->
c = e.target.value
$('img', QR.qr).src = "http://www.google.com/recaptcha/api/image?c=#{c}"
$('img', QR.qr).src = "http://www.google.com/recaptcha/api/image?c=#{c}" if QR.qr
QR.captcha =
challenge: c
time: Date.now()