fix "Hide stub"

This commit is contained in:
ccd0 2014-09-21 16:17:40 -07:00
parent b99ac6d53a
commit d3e4633b6a
2 changed files with 6 additions and 1 deletions

View File

@ -137,7 +137,10 @@ PostHiding =
$.event 'CloseMenu'
hideStub: ->
{post} = PostHiding.menu
post.nodes.root.hidden = true
if data = PostHiding.db.get {boardID: post.board.ID, threadID: post.thread.ID, postID: post.ID}
PostHiding.show post, data.hideRecursively
PostHiding.hide post, false, data.hideRecursively
PostHiding.saveHiddenState post, true, true, false, data.hideRecursively
$.event 'CloseMenu'
return

View File

@ -130,7 +130,9 @@ ThreadHiding =
hideStub: ->
{thread} = ThreadHiding.menu
ThreadHiding.show thread
ThreadHiding.hide thread, false
ThreadHiding.saveHiddenState thread, false
$.event 'CloseMenu'
return