fix "Hide stub"
This commit is contained in:
parent
b99ac6d53a
commit
d3e4633b6a
@ -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
|
||||
|
||||
|
||||
@ -130,7 +130,9 @@ ThreadHiding =
|
||||
|
||||
hideStub: ->
|
||||
{thread} = ThreadHiding.menu
|
||||
ThreadHiding.show thread
|
||||
ThreadHiding.hide thread, false
|
||||
ThreadHiding.saveHiddenState thread, false
|
||||
$.event 'CloseMenu'
|
||||
return
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user