using jstree i would like to limit the depth of my tree disallowing dropping on certain nodes.
Here is my (simplified) code :
$('#tree').jstree({
    "plugins":["dnd"],
    "core":{
        "check_callback":true
    },
    "dnd":{
        "copy":false
    }
}).on("move_node.jstree", function(node,nodes){
    console.log("node : "+nodes.node.id);
    console.log("parent : "+nodes.node.parent);
    console.log("position : "+nodes.position);
});
i found documentation about this for older version but not jstree 3
i tried a classic return false; on certain condition on the move_node function - it doesn't change anything. so i guess my question would simply be : how can i disable move_node on certain condition - the best way would be not allowing dragging on certain nodes (i.e. not displaying the triangle in front of them - and a red cross instead of the green mark) of course this nodes would still be draggable and act like any other nodes.
 
     
     
     
    