mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
style fixes
This commit is contained in:
parent
c703f9993f
commit
b5ae9edc2e
@ -7,6 +7,7 @@
|
||||
addSidebarItem,
|
||||
addSidebarLink,
|
||||
enableSidebar,
|
||||
enableSidetree,
|
||||
onPanelLoad,
|
||||
*/
|
||||
|
||||
@ -148,15 +149,15 @@ function enableSidebar(label, options={}) {
|
||||
/**
|
||||
* Enable support for a sidetree on this page
|
||||
*/
|
||||
function enableSidetree(label) {
|
||||
function enableSidetree(label) {
|
||||
$('#tree').jstree({
|
||||
'core' : {
|
||||
'data' : {
|
||||
'url' : '/api/part/category/tree/',
|
||||
'data' : function (node) { return { 'id' : node.id }; }
|
||||
'core': {
|
||||
'data': {
|
||||
'url': '/api/part/category/tree/',
|
||||
'data': function(node){return {'id': node.id }; }
|
||||
}
|
||||
}
|
||||
}).bind("select_node.jstree",function (e, data) {
|
||||
}).bind('select_node.jstree', function(e, data) {
|
||||
window.location.href = data.node.a_attr.href;
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user