mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Merge pull request #1349 from SchrodingersGat/used-in-filter
Enable filtering for "used in" table
This commit is contained in:
commit
615e2f8271
@ -22,12 +22,13 @@
|
||||
{% block js_ready %}
|
||||
{{ block.super }}
|
||||
|
||||
loadSimplePartTable('#used-table',
|
||||
loadPartTable('#used-table',
|
||||
'{% url "api-part-list" %}',
|
||||
{
|
||||
params: {
|
||||
uses: {{ part.pk }},
|
||||
}
|
||||
},
|
||||
filterTarget: '#filter-list-usedin',
|
||||
}
|
||||
);
|
||||
|
||||
|
@ -325,7 +325,7 @@ function loadPartTable(table, url, options={}) {
|
||||
filters[key] = params[key];
|
||||
}
|
||||
|
||||
setupFilterList("parts", $(table));
|
||||
setupFilterList("parts", $(table), options.filterTarget || null);
|
||||
|
||||
var columns = [
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user