2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-30 04:26:44 +00:00

Add search results for "company"

This commit is contained in:
Oliver Walters 2022-03-29 23:29:17 +11:00
parent 1f003b3f54
commit 2a604c244e

View File

@ -136,6 +136,20 @@ function updateSearch() {
} }
); );
} }
if (user_settings.SEARCH_PREVIEW_SHOW_COMPANIES) {
// Search for matching companies
addSearchQuery(
'company',
'{% trans "Companies" %}',
'{% url "api-company-list" %}',
{},
renderCompany,
{
url: '/company',
}
);
}
// Wait until all the pending queries are completed // Wait until all the pending queries are completed
$.when.apply($, searchQueries).done(function() { $.when.apply($, searchQueries).done(function() {