Fixed prefilled consume page initialization (fixes #1716)

This commit is contained in:
Bernd Bestel
2022-01-06 13:54:42 +01:00
parent 5f8299cf4a
commit 0b36d02aa1
2 changed files with 2 additions and 1 deletions

View File

@@ -597,7 +597,6 @@ if (GetUriParam("embedded") !== undefined)
if (typeof locationId === 'undefined')
{
Grocy.Components.ProductPicker.GetPicker().trigger('change');
Grocy.Components.ProductPicker.GetInputElement().focus();
}
else
{
@@ -605,6 +604,7 @@ if (GetUriParam("embedded") !== undefined)
$("#location_id").trigger('change');
$("#use_specific_stock_entry").click();
$("#use_specific_stock_entry").trigger('change');
Grocy.Components.ProductPicker.GetPicker().trigger('change');
}
}