From fb02a2104a8e497f2874b53c62c1c57b575cb824 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Tue, 8 Nov 2016 00:51:46 -0800 Subject: [PATCH] Move removal of threads from catalog to ThreadHiding.hide/show. This allows the call to ThreadHiding.hide in Filter.quickFilterMD5 to work. --- src/Filtering/ThreadHiding.coffee | 2 ++ src/General/Index.coffee | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Filtering/ThreadHiding.coffee b/src/Filtering/ThreadHiding.coffee index 75c3333f6..f788822ab 100644 --- a/src/Filtering/ThreadHiding.coffee +++ b/src/Filtering/ThreadHiding.coffee @@ -183,6 +183,7 @@ ThreadHiding = threadRoot = thread.nodes.root thread.isHidden = true Index.updateHideLabel() + $.rm thread.catalogView.nodes.root if thread.catalogView and !Index.showHiddenThreads return threadRoot.hidden = true unless makeStub @@ -195,3 +196,4 @@ ThreadHiding = threadRoot = thread.nodes.root threadRoot.hidden = thread.isHidden = false Index.updateHideLabel() + $.rm thread.catalogView.nodes.root if thread.catalogView and Index.showHiddenThreads diff --git a/src/General/Index.coffee b/src/General/Index.coffee index 926dee53f..06e063966 100644 --- a/src/General/Index.coffee +++ b/src/General/Index.coffee @@ -213,7 +213,6 @@ Index = e.preventDefault() # Also on mousedown to prevent highlighting text. toggleHide: (thread) -> - $.rm thread.catalogView.nodes.root if Index.showHiddenThreads ThreadHiding.show thread return unless ThreadHiding.db.get {boardID: thread.board.ID, threadID: thread.ID}