Make hiding threads on all threads index mode faster. #1484

This commit is contained in:
Mayhem 2014-02-27 17:54:14 +01:00
parent 2924711db4
commit a853bd5e8e

View File

@ -58,6 +58,11 @@ PostHiding =
PostHiding.saveHiddenState post
return if post.isReply
Index.updateHideLabel()
if Conf['Index Mode'] is 'all pages' # ssllooooww
root = post.nodes.root.parentNode
$.rm root.nextElementSibling
$.rm root
return
Index.sort()
Index.buildIndex()