From: Moritz Bunkus Date: Thu, 7 Mar 2013 12:08:22 +0000 (+0100) Subject: ClientJS: Unterstützung für jstree.create_node X-Git-Tag: release-3.1.0beta1~549 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=001c83b188e6a6394761c217d28984553f351c00;p=kivitendo-erp.git ClientJS: Unterstützung für jstree.create_node --- diff --git a/SL/ClientJS.pm b/SL/ClientJS.pm index 6a458be1a..51f663fa5 100644 --- a/SL/ClientJS.pm +++ b/SL/ClientJS.pm @@ -81,6 +81,7 @@ my %supported_methods = ( 'jstree:reopen' => 1, # Modifying nodes + 'jstree:create_node' => 4, 'jstree:rename_node' => 3, 'jstree:delete_node' => 2, 'jstree:move_node' => 5, diff --git a/js/client_js.js b/js/client_js.js index fa116dda4..031b5c8f4 100644 --- a/js/client_js.js +++ b/js/client_js.js @@ -94,6 +94,7 @@ function eval_json_result(data) { else if (action[0] == 'jstree:reopen') $.jstree._reference($(action[1])).reopen(); // Modifying nodes + else if (action[0] == 'jstree:create_node') $.jstree._reference($(action[1])).create_node(action[2], action[3], action[4]); else if (action[0] == 'jstree:rename_node') $.jstree._reference($(action[1])).rename_node(action[2], action[3]); else if (action[0] == 'jstree:delete_node') $.jstree._reference($(action[1])).delete_node(action[2]); else if (action[0] == 'jstree:move_node') $.jstree._reference($(action[1])).move_node(action[2], action[3], action[4], action[5]);