Fix Recursive Filtering and strikethroughing quotes.

This commit is contained in:
Nicolas Stepien 2012-05-01 16:54:55 +02:00
parent 145a6ef581
commit bce07659a0
2 changed files with 4 additions and 4 deletions

View File

@ -745,10 +745,10 @@
_ref = post.quotes; _ref = post.quotes;
for (_i = 0, _len = _ref.length; _i < _len; _i++) { for (_i = 0, _len = _ref.length; _i < _len; _i++) {
quote = _ref[_i]; quote = _ref[_i];
if ((el = $.id(quote.hash.slice(1))) && el.parentNode.parentNode.parentNode.hidden) { if ((el = $.id(quote.hash.slice(1))) && el.hidden) {
$.addClass(quote, 'filtered'); $.addClass(quote, 'filtered');
if (Conf['Recursive Filtering']) { if (Conf['Recursive Filtering']) {
ReplyHiding.hide(post.root); ReplyHiding.hide(post.root.firstElementChild);
} }
} }
} }

View File

@ -599,9 +599,9 @@ StrikethroughQuotes =
node: (post) -> node: (post) ->
return if post.isInlined return if post.isInlined
for quote in post.quotes for quote in post.quotes
if (el = $.id quote.hash[1..]) and el.parentNode.parentNode.parentNode.hidden if (el = $.id quote.hash[1..]) and el.hidden
$.addClass quote, 'filtered' $.addClass quote, 'filtered'
ReplyHiding.hide post.root if Conf['Recursive Filtering'] ReplyHiding.hide post.root.firstElementChild if Conf['Recursive Filtering']
return return
ExpandComment = ExpandComment =