mirror of
https://github.com/grocy/grocy.git
synced 2025-08-24 14:06:44 +00:00
Optimized product Grocycode handling on consume page (and others / general) (fixes #2571)
This commit is contained in:
@@ -257,6 +257,10 @@ $("#location_id").on('change', function(e)
|
||||
}
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
OnLocationChange(locationId, null);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -326,7 +330,7 @@ function OnLocationChange(locationId, stockId)
|
||||
}
|
||||
);
|
||||
|
||||
if (document.getElementById("product_id").getAttribute("barcode") == "null")
|
||||
if (document.getElementById("product_id").getAttribute("barcode") == "null" || $("#product_id").data("grocycode"))
|
||||
{
|
||||
ScanModeSubmit();
|
||||
}
|
||||
|
Reference in New Issue
Block a user