switch order of conditionals

This commit is contained in:
James Campos 2011-10-31 09:24:42 -07:00
parent 85d612886f
commit 4fa1ad3441
2 changed files with 2 additions and 2 deletions

View File

@ -2360,7 +2360,7 @@
if (!(el = $.id(qid))) {
continue;
}
if (!conf['OP Backlinks'] && el.className === 'op') {
if (el.className === 'op' && !conf['OP Backlinks']) {
continue;
}
link = a.cloneNode(true);

View File

@ -1780,7 +1780,7 @@ quoteBacklink =
for qid of quotes
continue unless el = $.id qid
#don't backlink the op
continue if !conf['OP Backlinks'] and el.className is 'op'
continue if el.className is 'op' and !conf['OP Backlinks']
link = a.cloneNode true
if conf['Quote Preview']
$.bind link, 'mouseover', quotePreview.mouseover