RemotePortal
unread,Jun 9, 2010, 5:42:49 AM6/9/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jsTree
I need an event fired after the user names a new node.
I configured a context menu item to create a child node. I've
attempted to capture the event TWO ways and neither works:
A) In the contextmenu action: function I do this:
$("#mytree").jstree("create",node,"first", {},function(tree,node){
attr: {rel: 'mynodetype'}
},function(tree,node){
log('called, BUT, it's called BEFORE node is named by user..
kinda useless');
});
I appreciate this callback but it's called prematurely before user
names the object. I personally don't see any value to that. Can you
consider changing that to fire AFTER the user is done typing the name
in the new node?
B) During configuration I bind to create_node:
$("#site_tree")
.bind("create_node.jstree", function(e,data) { log('event: ' +
e.type); }
This event isn't fired at all that I can see.
C) I don't see a rename event fired (hoping the name would cause a
rename event at least).
How do I get this event so I can do AJAX and update the server with
the name of the new node?
Thanks again!
Pete