From 0060bb074e499e5aaef9d05d709ae1e9b8278e8c Mon Sep 17 00:00:00 2001 From: Oliver Date: Tue, 21 Dec 2021 16:56:47 +1100 Subject: [PATCH] Updates for various part views --- InvenTree/part/templates/part/detail.html | 7 ++++++- InvenTree/templates/js/translated/part.js | 4 +++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/InvenTree/part/templates/part/detail.html b/InvenTree/part/templates/part/detail.html index d16de22e1b..999a9cba63 100644 --- a/InvenTree/part/templates/part/detail.html +++ b/InvenTree/part/templates/part/detail.html @@ -181,6 +181,9 @@
+
+ {% include "filter_list.html" with id="parameters" %} +
@@ -217,7 +220,7 @@
-
@@ -371,6 +375,7 @@ + {% include "filter_list.html" with id="manufacturer-part" %} diff --git a/InvenTree/templates/js/translated/part.js b/InvenTree/templates/js/translated/part.js index 7d9ba454e8..a357a965ed 100644 --- a/InvenTree/templates/js/translated/part.js +++ b/InvenTree/templates/js/translated/part.js @@ -621,7 +621,9 @@ function loadPartParameterTable(table, url, options) { filters[key] = params[key]; } - // setupFilterList("#part-parameters", $(table)); + var filterTarget = options.filterTarget || '#filter-list-parameters'; + + setupFilterList('part-parameters', $(table), filterTarget); $(table).inventreeTable({ url: url,