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

@ -395,12 +395,11 @@ loadTree("{% url 'api-stock-tree' %}",
} }
); );
$("#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(