...you can use .is_leaf() for checking if the selected node is a child-
node (leaf) or not. Returning false in 'before'-Event will reject
selecting the node.
$('#treeID')
.bind('before.jstree', function(event, data){
switch(data.plugin){
case 'ui':
if(data.inst.is_leaf(data.args[0])){
return false;
}
break;
default:
break;
}
})
.jstree({ ...core... });
Markus.
On 10 Mrz., 11:09, "
mark.t.macdon...@googlemail.com"