ultimix

- Main Page
- Data Structures
- Files
- Examples

- File List
- Globals

jquery.jstree.autorun.default.js
Go to the documentation of this file.
1 jQuery(
2 function()
3 {
4 jQuery( ".tree_control" ).jstree(
5 {
6 "plugins" : [ "themes" , "html_data" , "types" , "ui" , "crrm" , "cookies" , "types" ] ,
7 "themes" : {
8 "theme" : "classic" ,
9 "url" : './packages/gui/packages/jstree/res/themes/classic/style.css' //TODO: calculate this path
10 } ,
11 "types" :
12 {
13 "default" :
14 {
15 draggable : false ,
16 }
17 } ,
18 "lang" : {
19 new_node : "New item"
20 } ,
21 "core" : {
22 "initially_open" : [ "thtml_1" ] ,
23 "strings" : { new_node : "New item" }
24 } ,
25 "types" :
26 {
27 "valid_children" : [ "not_selectable" ],
28 "types" :
29 {
30 "not_selectable" :
31 {
32 "valid_children" : [ "default" ] ,
33 "hover_node" : false ,
34 "select_node" : function(){ return( false ); }
35 } ,
36 "default" :
37 {
38 "valid_children" : [ "default" ]
39 }
40 }
41 }
42 }
43 );
44
45 jQuery( '.tree_control' ).bind( "create.jstree" , ultimix.jstree.create_node_event_handler );
46 jQuery( '.tree_control' ).bind( "rename.jstree" , ultimix.jstree.rename_node_event_handler );
47 jQuery( '.tree_control' ).bind( "remove.jstree" , ultimix.jstree.remove_node_event_handler );
48 }
49 );