This commit is contained in:
Matthias 2021-12-06 22:37:17 +01:00
parent 70939a0cf9
commit 8e425e67a1
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -148,16 +148,12 @@ function enableSidebar(label, options={}) {
/**
* Enable support for a sidetree on this page
*/
function enableSidetree(label, options={}) {
function enableSidetree(label) {
$('#tree').jstree({
'core' : {
'data' : {
'url' : function (node) {
return '/api/part/category/tree/root/'
},
'data' : function (node) {
return { 'id' : node.id };
}
'url' : '/api/part/category/tree/root/',
'data' : function (node) { return { 'id' : node.id }; }
}
}
}).bind("select_node.jstree",function (e, data) {