backlink op, why not

This commit is contained in:
James Campos 2011-05-09 22:44:34 -07:00
parent 27d221cee4
commit 6aaf7d2dcd
2 changed files with 2 additions and 4 deletions

View File

@ -1698,8 +1698,7 @@
_results = [];
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
quote = _ref[_i];
el = d.getElementById(quote.textContent.slice(2));
if (!el || el.className === 'op') {
if (!(el = d.getElementById(quote.textContent.slice(2)))) {
continue;
}
good = 1;

View File

@ -1352,8 +1352,7 @@ quoteBacklink =
g.callbacks.push quoteBacklink.node
node: (root) ->
for quote in $$ 'a.quotelink', root
el = d.getElementById(quote.textContent[2..])
continue if not el or el.className is 'op'
continue unless el = d.getElementById(quote.textContent[2..])
good = 1
id = quote.parentNode.parentNode.parentNode.id
for backlink in $$ 'a.backlink', el