2 var $tree = $('#tree1');
4 data: ExampleData.example_data,
10 // Disable single selection
13 var selected_node = e.node;
15 if (selected_node.id == undefined) {
16 console.log('The multiple selection functions require that nodes have an id');
19 if ($tree.tree('isNodeSelected', selected_node)) {
20 $tree.tree('removeFromSelection', selected_node);
23 $tree.tree('addToSelection', selected_node);