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

Revision

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

Revision 467 Revision 470
Zeile 11... Zeile 11...
11
        </div>
11
        </div>
12
    </div>
12
    </div>
13
    <script>
13
    <script>
14
        $(function () {
14
        $(function () {
15
            $('#tree').jstree({
15
            $('#tree').jstree({
-
 
16
                "plugins": ["dnd", "contextmenu", "json_data"],
16
                'core': {
17
                'core': {
17
                    "check_callback": true,
18
                    "check_callback": true,
18
                },
19
                },
19
                "json_data":
20
                "json_data":
20
                    {
21
                    {
Zeile 36... Zeile 37...
36
                            {
37
                            {
37
                                console.log(response);
38
                                console.log(response);
38
                            }
39
                            }
39
                        },
40
                        },
40
                    },
41
                    },
41
                "plugins": ["dnd", "contextmenu", "json_data"],
-
 
42
            }).on("changed.jstree", function (e, data) {
42
            }).on("changed.jstree", function (e, data) {
43
                let dId = data.instance.get_node(data.selected[0]).id;
43
                let dId = data.instance.get_node(data.selected[0]).id;
44
                $('#tool').attr("src", "/Online-Shop/directory/" + dId + "/edit");
44
                $('#tool').attr("src", "/Online-Shop/directory/" + dId + "/edit");
45
            })
45
            })
46
        })
46
        })