Fix conflict of Reply Pruning with Unread Line. #836
This commit is contained in:
parent
300acc9ae7
commit
f1ef279050
@ -107,6 +107,7 @@ ReplyPruning =
|
|||||||
while ReplyPruning.hidden < hidden2 and ReplyPruning.position < posts.keys.length
|
while ReplyPruning.hidden < hidden2 and ReplyPruning.position < posts.keys.length
|
||||||
post = posts[posts.keys[ReplyPruning.position++]]
|
post = posts[posts.keys[ReplyPruning.position++]]
|
||||||
if post.isReply and not post.isFetchedQuote
|
if post.isReply and not post.isFetchedQuote
|
||||||
|
$.add ReplyPruning.container, node while (node = ReplyPruning.summary.nextSibling) and node isnt post.nodes.root
|
||||||
$.add ReplyPruning.container, post.nodes.root
|
$.add ReplyPruning.container, post.nodes.root
|
||||||
ReplyPruning.hidden++
|
ReplyPruning.hidden++
|
||||||
ReplyPruning.hiddenFiles++ if post.file
|
ReplyPruning.hiddenFiles++ if post.file
|
||||||
@ -116,6 +117,7 @@ ReplyPruning =
|
|||||||
while ReplyPruning.hidden > hidden2 and ReplyPruning.position > 0
|
while ReplyPruning.hidden > hidden2 and ReplyPruning.position > 0
|
||||||
post = posts[posts.keys[--ReplyPruning.position]]
|
post = posts[posts.keys[--ReplyPruning.position]]
|
||||||
if post.isReply and not post.isFetchedQuote
|
if post.isReply and not post.isFetchedQuote
|
||||||
|
$.prepend frag, node while (node = ReplyPruning.container.lastChild) and node isnt post.nodes.root
|
||||||
$.prepend frag, post.nodes.root
|
$.prepend frag, post.nodes.root
|
||||||
ReplyPruning.hidden--
|
ReplyPruning.hidden--
|
||||||
ReplyPruning.hiddenFiles-- if post.file
|
ReplyPruning.hiddenFiles-- if post.file
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user