Revision 001c83b1
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/ClientJS.pm | ||
---|---|---|
81 | 81 |
'jstree:reopen' => 1, |
82 | 82 |
|
83 | 83 |
# Modifying nodes |
84 |
'jstree:create_node' => 4, |
|
84 | 85 |
'jstree:rename_node' => 3, |
85 | 86 |
'jstree:delete_node' => 2, |
86 | 87 |
'jstree:move_node' => 5, |
js/client_js.js | ||
---|---|---|
94 | 94 |
else if (action[0] == 'jstree:reopen') $.jstree._reference($(action[1])).reopen(); |
95 | 95 |
|
96 | 96 |
// Modifying nodes |
97 |
else if (action[0] == 'jstree:create_node') $.jstree._reference($(action[1])).create_node(action[2], action[3], action[4]); |
|
97 | 98 |
else if (action[0] == 'jstree:rename_node') $.jstree._reference($(action[1])).rename_node(action[2], action[3]); |
98 | 99 |
else if (action[0] == 'jstree:delete_node') $.jstree._reference($(action[1])).delete_node(action[2]); |
99 | 100 |
else if (action[0] == 'jstree:move_node') $.jstree._reference($(action[1])).move_node(action[2], action[3], action[4], action[5]); |
Auch abrufbar als: Unified diff
ClientJS: Unterstützung für jstree.create_node