style fixes

This commit is contained in:
Matthias 2021-12-06 23:48:21 +01:00
parent c703f9993f
commit b5ae9edc2e
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -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;
});