or -> and

This commit is contained in:
James Campos 2011-08-23 18:34:46 -07:00
parent a784a608ec
commit 0a6608ac75
2 changed files with 2 additions and 2 deletions

View File

@ -1220,7 +1220,7 @@
submit.disabled = false;
submit.value = 'Submit';
}
if (qr.el && $('#auto', qr.el).checked || !qr.postInvalid()) {
if (qr.el && $('#auto', qr.el).checked && !qr.postInvalid()) {
return qr.submit.call($('form', qr.el));
}
}

View File

@ -960,7 +960,7 @@ cooldown =
for submit in submits
submit.disabled = false
submit.value = 'Submit'
if qr.el and $('#auto', qr.el).checked or not qr.postInvalid()
if qr.el and $('#auto', qr.el).checked and not qr.postInvalid()
qr.submit.call $ 'form', qr.el
qr =