Merge pull request #1377 from SchrodingersGat/nav-tree-fix

Fix incorrect javascript call
This commit is contained in:
Oliver 2021-03-02 10:45:31 +11:00 committed by GitHub
commit 197682635e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -389,18 +389,17 @@ enableNavbar({
});
loadTree("{% url 'api-stock-tree' %}",
"#stock-tree",
{
name: 'stock',
}
);
"#stock-tree",
{
name: 'stock',
}
);
$("#toggle-stock-tree").click(function() {
toggleSideNav("#sidenav-left");
return false;
})
initSideNav();
initNavTree({
label: 'stock',
treeId: '#sidenav-left',
toggleId: '#toggle-stock-tree',
});
$("#stock-serialize").click(function() {
launchModalForm(