-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fails to use Json Data in version 4/9/2012 (New test) #195
Comments
I had the same problem. I just take a look to jstree.json.js. It seems to me that now json_data plugin is only called "json". |
I found also that, In jstree.json.js line 42, dom.children('ul').empty().append(data.children('li')); data.children('li'); is always empty. dom.children('ul').empty().append(data); <--- this works for me. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using the sample JSON demo1 code, the new version does not render the tree. It used to work with the version dated 7/12/2011.
$("#demo1").jstree({
"json_data" : {
"data" : [
{
"data" : "A node",
"metadata" : { id : 23 },
"children" : [ "Child 1", "A Child 2" ]
},
{
"attr" : { "id" : "li.node.id1" },
"data" : {
"title" : "Long format demo",
"attr" : { "href" : "#" }
}
}
]
},
"plugins" : [ "themes", "json_data", "ui" ]
}).bind("select_node.jstree", function (e, data) { alert(data.rslt.obj.data("id")); });
The text was updated successfully, but these errors were encountered: