Remove inlined posts before parsing clone. #1133
This commit is contained in:
parent
a675855470
commit
2503ffaad8
@ -16,14 +16,14 @@ Post.Clone = class extends Post
|
|||||||
node.id = Post.Clone.prefix + node.id
|
node.id = Post.Clone.prefix + node.id
|
||||||
Post.Clone.prefix++
|
Post.Clone.prefix++
|
||||||
|
|
||||||
@nodes = @parseNodes root
|
|
||||||
|
|
||||||
# Remove inlined posts inside of this post.
|
# Remove inlined posts inside of this post.
|
||||||
for inline in $$ '.inline', @nodes.post
|
for inline in $$ '.inline', root
|
||||||
$.rm inline
|
$.rm inline
|
||||||
for inlined in $$ '.inlined', @nodes.post
|
for inlined in $$ '.inlined', root
|
||||||
$.rmClass inlined, 'inlined'
|
$.rmClass inlined, 'inlined'
|
||||||
|
|
||||||
|
@nodes = @parseNodes root
|
||||||
|
|
||||||
root.hidden = false # post hiding
|
root.hidden = false # post hiding
|
||||||
$.rmClass root, 'forwarded' # quote inlining
|
$.rmClass root, 'forwarded' # quote inlining
|
||||||
$.rmClass @nodes.post, 'highlight' # keybind navigation, ID highlighting
|
$.rmClass @nodes.post, 'highlight' # keybind navigation, ID highlighting
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user