Subversion-Projekte lars-tiefland.webanos.marine-sales.de

Revision

Revision 464 | Revision 466 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 464 Revision 465
Zeile 15... Zeile 15...
15
            $('#tree').jstree({
15
            $('#tree').jstree({
16
                'core': {
16
                'core': {
17
                    "check_callback": true,
17
                    "check_callback": true,
18
                },
18
                },
19
                "json_data":
19
                "json_data":
20
                {
20
                    {
21
                    "ajax":{
21
                        "ajax": {
22
                        "type":"GET",
22
                            "type": "GET",
-
 
23
                            "dataType": "json",
-
 
24
                            "async": true,
23
                        "url":function(node) {
25
                            "url": function (node) {
24
                            let nodeId;
26
                                let nodeId;
25
                            nodeId=node.id;
27
                                nodeId = node.id;
26
                            let url="/Online-Shop/tree?id="+ nodeId;
28
                                let url = "/Online-Shop/tree?id=" + nodeId;
27
                            return url;
29
                                return url;
-
 
30
                            },
-
 
31
                            "success": function (new_data) {
-
 
32
                                return new_data;
-
 
33
                            }
28
                        },
34
                        },
29
                        "success":function(new_data) {
-
 
30
                            return new_data;
-
 
31
                        }
-
 
32
                    },
35
                    },
33
                },
-
 
34
                "plugins" : ["dnd","contextmenu","json_data"],
36
                "plugins": ["dnd", "contextmenu", "json_data"],
35
            }).on("changed.jstree", function (e, data) {
37
            }).on("changed.jstree", function (e, data) {
36
                let dId=data.instance.get_node(data.selected[0]).id;
38
                let dId = data.instance.get_node(data.selected[0]).id;
37
                $('#tool').attr("src","/Online-Shop/directory/"+dId+"/edit");
39
                $('#tool').attr("src", "/Online-Shop/directory/" + dId + "/edit");
38
            })
40
            })
39
        })
41
        })
40
    </script>
42
    </script>
41
{/block}
43
{/block}