2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-30 04:26:44 +00:00

Adds filters for "manufacturer-parts" list

This commit is contained in:
Oliver 2021-12-21 16:47:20 +11:00
parent 46aeafb5da
commit 9884c0fadb
2 changed files with 4 additions and 2 deletions

View File

@ -92,8 +92,8 @@
{% endif %} {% endif %}
</ul> </ul>
</div> </div>
{% include "filter_list.html" with id="manufacturer-part" %}
</div> </div>
{% include "filter_list.html" with id="supplier-part" %}
</div> </div>
</div> </div>
{% endif %} {% endif %}

View File

@ -464,7 +464,9 @@ function loadManufacturerPartTable(table, url, options) {
filters[key] = params[key]; filters[key] = params[key];
} }
setupFilterList('manufacturer-part', $(table)); var filterTarget = options.filterTarget || '#filter-list-manufacturer-part';
setupFilterList('manufacturer-part', $(table), filterTarget);
$(table).inventreeTable({ $(table).inventreeTable({
url: url, url: url,