So contains() was actually useful for hidden threads.
This commit is contained in:
parent
087dda6f48
commit
257a31f8be
@ -3095,7 +3095,7 @@
|
||||
node: function(root) {
|
||||
var path, quote, tid, _i, _len, _ref;
|
||||
if (root.className === 'inline') return;
|
||||
tid = g.THREAD_ID || $.x('ancestor::div[@class="thread"]', root).firstChild.id;
|
||||
tid = g.THREAD_ID || $.x('ancestor::div[contains(@class,"thread")]', root).firstChild.id;
|
||||
_ref = $$('.quotelink', root);
|
||||
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||
quote = _ref[_i];
|
||||
|
||||
@ -2439,7 +2439,8 @@ quoteIndicators =
|
||||
g.callbacks.push @node
|
||||
node: (root) ->
|
||||
return if root.className is 'inline'
|
||||
tid = g.THREAD_ID or $.x('ancestor::div[@class="thread"]', root).firstChild.id
|
||||
# We use contains() so that it works with hidden threads
|
||||
tid = g.THREAD_ID or $.x('ancestor::div[contains(@class,"thread")]', root).firstChild.id
|
||||
for quote in $$ '.quotelink', root
|
||||
if conf['Indicate OP quote'] and quote.hash[1..] is tid
|
||||
# \u00A0 is nbsp
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user