There is a script:
<script>
$(function (){
$('#jstree')
.jstree({
"plugins": [ "dnd", "sort", "json_data" ],
'core':{
"check_callback" : true,
"plugins" : ["contextmenu", "dnd"],
'data': {
'url': function (node) {
return node.id === '#' ? 'ajax?id=root' : 'ajax?id=' + node.id;
},
'data': function (node) {
return { 'id': node.id };
}
}
}
});
});
</script>
I need to add a delay (2 sec) on opening nodes. I readed jQuery documentation but i didn't find an answer there. Please help me how add a delay?