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