So contains() was actually useful for hidden threads.
This commit is contained in:
parent
087dda6f48
commit
257a31f8be
@ -3095,7 +3095,7 @@
|
|||||||
node: function(root) {
|
node: function(root) {
|
||||||
var path, quote, tid, _i, _len, _ref;
|
var path, quote, tid, _i, _len, _ref;
|
||||||
if (root.className === 'inline') return;
|
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);
|
_ref = $$('.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];
|
||||||
|
|||||||
@ -2439,7 +2439,8 @@ quoteIndicators =
|
|||||||
g.callbacks.push @node
|
g.callbacks.push @node
|
||||||
node: (root) ->
|
node: (root) ->
|
||||||
return if root.className is 'inline'
|
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
|
for quote in $$ '.quotelink', root
|
||||||
if conf['Indicate OP quote'] and quote.hash[1..] is tid
|
if conf['Indicate OP quote'] and quote.hash[1..] is tid
|
||||||
# \u00A0 is nbsp
|
# \u00A0 is nbsp
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user