It seems according to the documentation of the demo:
http://www.jstree.com/demo
You can do:
.one("reselect.jstree", function (event, data) { });
or
.bind("select_node.jstree", function (event, data) {
Read the documentation carefully as:
one is used, this is because if refresh is called, these events fire
For the last event, delegate instead of writing event.preventDefault(); you can do your redirection correctly if you are not using the user interface plugin and write: window.location = $(this).attr('href');
source share