mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
reduce
This commit is contained in:
parent
70939a0cf9
commit
8e425e67a1
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user