Reflect the stub filter parameter in recursive filtering.

This commit is contained in:
Nicolas Stepien 2012-06-13 17:04:33 +02:00
parent 7d3a687b5a
commit 02ac826003
2 changed files with 6 additions and 3 deletions

View File

@ -717,7 +717,7 @@
return Main.callbacks.push(this.node); return Main.callbacks.push(this.node);
}, },
node: function(post) { node: function(post) {
var el, quote, _i, _len, _ref; var el, quote, show_stub, _i, _len, _ref;
if (post.isInlined) { if (post.isInlined) {
return; return;
} }
@ -727,7 +727,8 @@
if ((el = $.id(quote.hash.slice(1))) && el.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); show_stub = !!$.x('preceding-sibling::div[contains(@class,"stub")]', el);
ReplyHiding.hide(post.root, show_stub);
} }
} }
} }

View File

@ -564,7 +564,9 @@ StrikethroughQuotes =
for quote in post.quotes for quote in post.quotes
if (el = $.id quote.hash[1..]) and el.hidden if (el = $.id quote.hash[1..]) and el.hidden
$.addClass quote, 'filtered' $.addClass quote, 'filtered'
ReplyHiding.hide post.root if Conf['Recursive Filtering'] if Conf['Recursive Filtering']
show_stub = !!$.x 'preceding-sibling::div[contains(@class,"stub")]', el
ReplyHiding.hide post.root, show_stub
return return
ExpandComment = ExpandComment =