2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-11 01:25:40 +00:00
This commit is contained in:
Matthias
2021-12-06 22:37:17 +01:00
parent 70939a0cf9
commit 8e425e67a1

View File

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