add this to the kernel:
reopen : function () { var _this = this; if(this.data.core.to_open.length) { $.each(this.data.core.to_open, function (i, val) { _this.open_node(val, false, true); }); } this.__callback({}); this.reopened(); },
note that only this .reopened is added to the existing reopen method. now create a reopened method:
reopened : function () { this.__callback(); },
now bind the new reopened method to your tree selector
}).bind("reopened.jstree", function (e,data) { alert("i am refreshed..."); });
be careful because this warning message will also be called when the tree is loaded. This is somehow better, since now you have a way to have a callback when the tree is updated!
Hope this helps you all!
source share