ClientJS: um jstree-Funktionen erweitert; client_js.js komplett automatisch erzeugen
[kivitendo-erp.git] / scripts / generate_client_js_actions.tpl
1 // NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE:
2
3 // This file is generated automatically by the script
4 // "scripts/generate_client_js_actions.pl". See the documentation for
5 // SL/ClientJS.pm for instructions.
6
7 function eval_json_result(data) {
8   if (!data)
9     return;
10
11   if ((data.js || '') != '')
12     eval(data.js);
13
14   if (data.eval_actions)
15     $(data.eval_actions).each(function(idx, action) {
16       // console.log("ACTION " + action[0] + " ON " + action[1]);
17
18 [% actions %]
19     });
20
21   // console.log("current_content_type " + $('#current_content_type').val() + ' ID ' + $('#current_content_id').val());
22 }