I need a jsTree, which reacts differently to clicks depending on if it is an anchor or a child that is clicked.
If an anchor is clicked, I need the node to open (if closed, and vise verca) and NOT select the node (or children).
If a child is clicked, the checkbox becomes checked.
I have got number one working, but it doesn't allow the children checkboxes to be selected.
Here is my code so far:
$('#tree')
.on('click', '.jstree-anchor', function (e) {
$('#tree').jstree(true).toggle_node(e.target);
$('#tree').jstree(true).deselect_node(data.node);
})"