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