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,
|
addSidebarItem,
|
||||||
addSidebarLink,
|
addSidebarLink,
|
||||||
enableSidebar,
|
enableSidebar,
|
||||||
|
enableSidetree,
|
||||||
onPanelLoad,
|
onPanelLoad,
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -148,15 +149,15 @@ function enableSidebar(label, options={}) {
|
|||||||
/**
|
/**
|
||||||
* Enable support for a sidetree on this page
|
* Enable support for a sidetree on this page
|
||||||
*/
|
*/
|
||||||
function enableSidetree(label) {
|
function enableSidetree(label) {
|
||||||
$('#tree').jstree({
|
$('#tree').jstree({
|
||||||
'core' : {
|
'core': {
|
||||||
'data' : {
|
'data': {
|
||||||
'url' : '/api/part/category/tree/',
|
'url': '/api/part/category/tree/',
|
||||||
'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) {
|
||||||
window.location.href = data.node.a_attr.href;
|
window.location.href = data.node.a_attr.href;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user