OdinaSpb / jstree

Automatically exported from code.google.com/p/jstree
0 stars 0 forks source link

Disable the rename function on create new folder #998

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. http://www.jstree.com/demo
2. PHP & mySQL demo + event order
3. I call this function: $("#demo").jstree("create", null, "last", { "attr" : { 
"rel" : "folder" }, "data" : { "title":"FOLDERNAME" } } );

What is the expected output? What do you see instead?
I want to add a new button which can add folder to jstree with a given folder 
name but that folder name cannot be changed by user.

What version of the product are you using? On what browser?
jstree_pre1.0_fix_1

Please provide any additional information below.
Can I disable the rename function on create new folder?

Original issue reported on code.google.com by ayming1...@gmail.com on 16 Oct 2012 at 2:39

GoogleCodeExporter commented 9 years ago
[solved]Finally, I find out the solution at document > crrm > Creating nodes.
 $("#demo1").jstree("create",-1,false,"No rename",false,true);
Nice jquery plugin =]

Original comment by ayming1...@gmail.com on 16 Oct 2012 at 6:12