mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-11 01:25:40 +00:00
reduce
This commit is contained in:
@ -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) {
|
||||||
|
Reference in New Issue
Block a user