= should be ==

but I actually just changed it to `is`
This commit is contained in:
James Campos 2010-09-04 13:20:06 -07:00
parent 9637237578
commit d756506656
2 changed files with 3 additions and 2 deletions

View File

@ -419,7 +419,7 @@ iframeLoad = ->
span.textContent = error
span.className = 'error'
qr.appendChild(span)
if error = 'You seem to have mistyped the verification'
if error is 'You seem to have mistyped the verification'
window.location = 'javascript:Recaptcha.reload()'
else
remove(qr)

View File

@ -457,7 +457,8 @@
span = tag('span');
span.textContent = error;
span.className = 'error';
return qr.appendChild(span);
qr.appendChild(span);
return error === 'You seem to have mistyped the verification' ? (window.location = 'javascript:Recaptcha.reload()') : null;
} else {
remove(qr);
return (window.location = 'javascript:Recaptcha.reload()');