fileTreeDiv.on('after_open.jstree', function(event, data) {
if (data.node.get_type() === 'folder') {
domNode = fileTree.get_node(data.node.id, true);
domNode.addClass('jstree-open').removeClass('jstree-leaf');
}
}
fileTreeDiv.on('load_node.jstree', function(event, data) {
var treeNode = data.node;
if (treeNode.type === NODE_TYPE_FOLDER) {
domNode = fileTree.get_node(treeNode.id, true);
domNode.addClass('jstree-open').removeClass('jstree-leaf');
//data.node.state.loaded = false;
}
});
--
You received this message because you are subscribed to a topic in the Google Groups "jsTree" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jstree/-UeKk33LKtI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jstree+un...@googlegroups.com.
To post to this group, send email to jst...@googlegroups.com.
Visit this group at http://groups.google.com/group/jstree.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and all its topics, send an email to jstree+unsubscribe@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to jstree+un...@googlegroups.com.