Improve company search results page

This commit is contained in:
Oliver Walters 2020-04-13 13:13:54 +10:00
parent 8adc83b650
commit 34abf34c0f

View File

@ -135,26 +135,12 @@ InvenTree | {% trans "Search Results" %}
} }
); );
$("#company-results-table").inventreeTable({ loadCompanyTable('#company-results-table', "{% url 'api-company-list' %}", {
url: "{% url 'api-company-list' %}", params: {
queryParams: { serach: "{{ query }}",
search: "{{ query }}", }
},
columns: [
{
field: 'name',
title: 'Name',
formatter: function(value, row, index, field) {
return imageHoverIcon(row.image) + renderLink(value, row.url);
},
},
{
field: 'description',
title: 'Description',
},
]
}); });
$("#supplier-part-results-table").inventreeTable({ $("#supplier-part-results-table").inventreeTable({
url: "{% url 'api-part-supplier-list' %}", url: "{% url 'api-part-supplier-list' %}",
queryParams: { queryParams: {