Now i have following setup:
$("#sidebar").jstree({
"json_data" : {
"data" : <?=$node_tree_json?>
},
"ui" : {
"selected_parent_close" : "select_parent",
"initially_select" : [ "node_<?=$this->node->id?>" ]
},
"plugins" : [ "themes", "json_data", "ui" ]
}).bind("select_node.jstree", function (e, data) {
document.location.href =
data.rslt.obj.children("a").attr("href");
});
And the page is reloading all the time, i belive it is happening
because in settings to initally select a node...