Progress with component handling

This commit is contained in:
2021-11-09 18:44:28 +01:00
parent ed733b8bb7
commit 7eb2652433
9 changed files with 101 additions and 12 deletions

View File

@@ -28,6 +28,9 @@ function fill_add_stock_modal_component(data) {
new AutocompleteCustomUi('add-stock-search', 'add-stock-search-ac-dropdown',
function(search, autocomplete_obj) {
if (search.startsWith('[comp_uuid]')) {
search = search.replace('[comp_uuid]', '');
}
api_search_component(search, function(results) {
components = results.results;
var test = [];