mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Sidenav toggles
This commit is contained in:
parent
3403af18c8
commit
9cc0780367
@ -5,5 +5,5 @@ function openSideNav() {
|
|||||||
|
|
||||||
function closeSideNav() {
|
function closeSideNav() {
|
||||||
document.getElementById("sidenav").style.width = "0";
|
document.getElementById("sidenav").style.width = "0";
|
||||||
document.getElementById("inventree-content").style.marginLeft = "0";
|
document.getElementById("inventree-content").style.marginLeft = "50px";
|
||||||
}
|
}
|
@ -62,7 +62,12 @@ $(document).ready(function () {
|
|||||||
"#stock-tree");
|
"#stock-tree");
|
||||||
|
|
||||||
$('#logo').click(function() {
|
$('#logo').click(function() {
|
||||||
openSideNav();
|
if ($("#sidenav").width() == 0) {
|
||||||
|
openSideNav();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
closeSideNav();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
{% block js_ready %}
|
{% block js_ready %}
|
||||||
|
Loading…
Reference in New Issue
Block a user