Include node_type on jstree list item
This commit is contained in:
parent
756e3d2d89
commit
24ede3f4ee
@ -21,6 +21,7 @@ def jstree_parse_node(node, children=None):
|
|||||||
parsed_node = dict(
|
parsed_node = dict(
|
||||||
id="n_{0}".format(node._id),
|
id="n_{0}".format(node._id),
|
||||||
a_attr={ "href" : url_for_node(node=node) },
|
a_attr={ "href" : url_for_node(node=node) },
|
||||||
|
li_attr={ "data-node-type" : node.node_type },
|
||||||
text=Markup.escape(node.name),
|
text=Markup.escape(node.name),
|
||||||
type=node_type,
|
type=node_type,
|
||||||
children=False)
|
children=False)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user