What steps will reproduce the problem?
i have a jstree with the remove.jstree binding
and i want to get the immediate parent of the item i removed but i always get -1
what am i doing wrong?
.bind("remove.jstree", function (e, data) {
data.rslt.obj.each(function () {
alert(this.id);
var parent=data.inst._get_parent(data.rslt.obj);
alert(parent.find('a').first().text());
$.ajax({
async: false,
type: 'POST',
url: siteRoot + "Ajax/AjaxItemOperations.aspx",
data: {
"operation": "remove_node",
"id": this.id,
"parentId": 2
},
success: function (r) {
if (!r.status) {
data.inst.refresh();
}
}
});
});
})
Original issue reported on code.google.com by bobeica....@gmail.com on 15 Nov 2012 at 3:34
Original issue reported on code.google.com by
bobeica....@gmail.com
on 15 Nov 2012 at 3:34