jzaefferer/jquery-treeview — Issue #16: Click events are not cleared for [+] divs on tree reloading (with ajax)
Author: sivanov-hill30
Created: 2011-10-10 16:32:07+00:00
State: open

When i load a tree with ajax requests like this (I receive a response like {"id":"37","text":"Root","expanded":false,"hasChildren":true,"classes":"internalNode","children":[]} ):
var target = $('#myTreeDiv');
var settings = {
url: UrlHelper("~/Controller/LoadRoot"),
ajax: {
data: { Some data for the request },
type: "post"
},
animated: "fast"
};
target.treeview(settings);

then on expanding load some children with ajax and then reload the whole tree anew with another root (all that is done with ajax without reloading the whole page) then I get several click events on the "plus" div while a single event on the node name.