mirror of
https://github.com/grocy/grocy.git
synced 2025-08-18 03:25:50 +00:00
Added a camera-barcode-scanner-button to the barcodes field on the product edit page (closes #723)
This commit is contained in:
@@ -85,7 +85,12 @@ function OnBarcodeScanned(barcode)
|
||||
}, 200);
|
||||
}
|
||||
|
||||
$(document).on("Grocy.BarcodeScanned", function(e, barcode)
|
||||
$(document).on("Grocy.BarcodeScanned", function(e, barcode, target)
|
||||
{
|
||||
if (target !== "#scanned_barcod")
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
OnBarcodeScanned(barcode);
|
||||
});
|
||||
|
Reference in New Issue
Block a user