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' %}", loadTree("{% url 'api-stock-tree' %}",
"#stock-tree", "#stock-tree",
{ {
name: 'stock', name: 'stock',
} }
); );
$("#toggle-stock-tree").click(function() { initNavTree({
toggleSideNav("#sidenav-left"); label: 'stock',
return false; treeId: '#sidenav-left',
}) toggleId: '#toggle-stock-tree',
});
initSideNav();
$("#stock-serialize").click(function() { $("#stock-serialize").click(function() {
launchModalForm( launchModalForm(