mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-05 06:48:48 +00:00
load category tables "Just in time"
This commit is contained in:
parent
335f0ceb79
commit
52a0665e32
@ -240,9 +240,6 @@
|
||||
|
||||
{% endif %}
|
||||
|
||||
// Enable left-hand navigation sidebar
|
||||
enableSidebar('category');
|
||||
|
||||
// Enable breadcrumb tree view
|
||||
enableBreadcrumbTree({
|
||||
label: 'category',
|
||||
@ -258,6 +255,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
onPanelLoad('subcategories', function() {
|
||||
loadPartCategoryTable(
|
||||
$('#subcategory-table'), {
|
||||
params: {
|
||||
@ -270,6 +268,7 @@
|
||||
allowTreeView: true,
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
$("#cat-create").click(function() {
|
||||
|
||||
@ -339,6 +338,7 @@
|
||||
|
||||
{% endif %}
|
||||
|
||||
onPanelLoad('parts', function() {
|
||||
loadPartTable(
|
||||
"#part-table",
|
||||
"{% url 'api-part-list' %}",
|
||||
@ -353,5 +353,9 @@
|
||||
gridView: true,
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
// Enable left-hand navigation sidebar
|
||||
enableSidebar('category');
|
||||
|
||||
{% endblock %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user