From 34abf34c0fbf7cd81838163cbc762939530cd41a Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Mon, 13 Apr 2020 13:13:54 +1000 Subject: [PATCH] Improve company search results page --- InvenTree/templates/InvenTree/search.html | 24 +++++------------------ 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/InvenTree/templates/InvenTree/search.html b/InvenTree/templates/InvenTree/search.html index 03b64419c7..e13291a76a 100644 --- a/InvenTree/templates/InvenTree/search.html +++ b/InvenTree/templates/InvenTree/search.html @@ -135,26 +135,12 @@ 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({ url: "{% url 'api-part-supplier-list' %}", queryParams: {