So contains() was actually useful for hidden threads.

This commit is contained in:
Nicolas Stepien 2012-02-18 01:25:46 +01:00
parent 087dda6f48
commit 257a31f8be
2 changed files with 3 additions and 2 deletions

View File

@ -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];

View File

@ -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