mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 17:45:39 +00:00
Make new barcode added via productpicker InplaceAddBarcodeToExistingProduct flow immediately searchable (closes #839)
This commit is contained in:
parent
35ed7299af
commit
34859ada02
@ -51,6 +51,11 @@ Grocy.Components.ProductPicker.InAnyFlow = function()
|
|||||||
|
|
||||||
Grocy.Components.ProductPicker.FinishFlow = function()
|
Grocy.Components.ProductPicker.FinishFlow = function()
|
||||||
{
|
{
|
||||||
|
if (GetUriParam("flow") == "InplaceAddBarcodeToExistingProduct")
|
||||||
|
{
|
||||||
|
$("#product_id option[value=\"" + Grocy.Components.ProductPicker.GetValue() + "\"]").attr("data-additional-searchdata", (i, value) => `${value || ""}${GetUriParam("barcode")},`);
|
||||||
|
}
|
||||||
|
|
||||||
RemoveUriParam("flow");
|
RemoveUriParam("flow");
|
||||||
RemoveUriParam("barcode");
|
RemoveUriParam("barcode");
|
||||||
RemoveUriParam("product-name");
|
RemoveUriParam("product-name");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user