this is probably more efficient
This commit is contained in:
parent
2e98085f18
commit
1d47d195fa
@ -1839,7 +1839,7 @@
|
||||
}));
|
||||
id = root.id || $('td[id]', root).id;
|
||||
quotes = {};
|
||||
opbl = $.config('OP Backlinks');
|
||||
opbl = !$.config('OP Backlinks');
|
||||
_ref = $$('a.quotelink', root);
|
||||
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||
quote = _ref[_i];
|
||||
@ -1854,7 +1854,7 @@
|
||||
if (!(el = d.getElementById(qid))) {
|
||||
continue;
|
||||
}
|
||||
if (!opbl && el.className === 'op') {
|
||||
if (opbl && el.className === 'op') {
|
||||
continue;
|
||||
}
|
||||
link = $.el('a', {
|
||||
|
||||
@ -1446,7 +1446,7 @@ quoteBacklink =
|
||||
# op or reply
|
||||
id = root.id or $('td[id]', root).id
|
||||
quotes = {}
|
||||
opbl = $.config 'OP Backlinks'
|
||||
opbl = ! $.config 'OP Backlinks'
|
||||
for quote in $$ 'a.quotelink', root
|
||||
#don't process >>>/b/
|
||||
continue unless qid = quote.hash[1..]
|
||||
@ -1455,7 +1455,7 @@ quoteBacklink =
|
||||
for qid, quote of quotes
|
||||
continue unless el = d.getElementById qid
|
||||
#don't backlink the op
|
||||
continue if !opbl and el.className is 'op'
|
||||
continue if opbl and el.className is 'op'
|
||||
link = $.el 'a',
|
||||
href: '#'+id
|
||||
className: 'backlink'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user