2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-20 22:06:28 +00:00

Fancify all the menubars

This commit is contained in:
Oliver Walters
2021-02-25 09:10:20 +11:00
parent fe42d5c54d
commit 26e80fa0ab
12 changed files with 112 additions and 96 deletions

View File

@ -161,10 +161,12 @@
{% block js_ready %}
{{ block.super }}
enableRightNavbar({
minWidth: '50px',
});
{% if category %}
enableNavbar({
label: 'category',
toggleId: '#category-menu-toggle',
});
{% endif %}
if (inventreeLoadInt("show-part-cats") == 1) {
$("#collapse-item-categories").collapse('show');

View File

@ -201,14 +201,11 @@
{% block js_ready %}
{{ block.super }}
enableRightNavbar({
minWidth: '50px',
enableNavbar({
label: 'part',
toggleId: '#part-menu-toggle',
});
$('#part-menu-toggle').click(function() {
toggleMenuExpand();
})
enableDragAndDrop(
'#part-thumb',
"{% url 'part-image-upload' part.id %}",