mirror of
https://github.com/grocy/grocy.git
synced 2025-08-15 18:26:00 +00:00
Fixed prefilled consume page initialization (fixes #1716)
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user