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,24 +135,10 @@ InvenTree | {% trans "Search Results" %}
}
);
$("#company-results-table").inventreeTable({
url: "{% url 'api-company-list' %}",
queryParams: {
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',
},
]
loadCompanyTable('#company-results-table', "{% url 'api-company-list' %}", {
params: {
serach: "{{ query }}",
}
});
$("#supplier-part-results-table").inventreeTable({