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:
parent
1f003b3f54
commit
2a604c244e
@ -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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user