mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Improve company search results page
This commit is contained in:
parent
8adc83b650
commit
34abf34c0f
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user