vakata/jstree — Issue #146: Menu changes
Author: trevorpearce
Created: 2011-12-10 23:34:26+00:00
State: open

The tree has a great right click menu which I'm trying to modify. Please excuse my poor explanation of what I'm trying to do. Using the demo there is a button to create a new folder and I'm trying to integrate that into the right click menu so I don't need the buttons at all. They are kinda redundant but unfortunately even using them as an example I'm stuck. The create folder starts with on the index.html page. The jquery.jstree.js create the menu using defatults :{ and to summarize there is create, rename,remove and ccp. I've added the following;
createf" : {
"separator_before"	: false,
"separator_after"	: true,
"label"	: "Create Folder",
"action"	: function (obj) { makeafolder();}

and then I'm trying to complete a function to create that folder using the original button menu as an example with no luck. I've been at this for days now and would appreciate some direction.

While I'm writing this I might as well ask an additional question. I also want to create another menu item that calls a function but I need to get the data that is also stored in the db id	parent_id	position	left	right	level	title	type

Any assistance is appreciated. My programming skills aren't great but I'm hoping to learn more.

Thanks