mirror of
https://github.com/grocy/grocy.git
synced 2025-08-23 13:23:34 +00:00
Added a camera-barcode-scanner-button to the barcodes field on the product edit page (closes #723)
This commit is contained in:
@@ -434,3 +434,13 @@ $('#qu_id_purchase').blur(function(e)
|
||||
Grocy.FrontendHelpers.ValidateForm('product-form');
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on("Grocy.BarcodeScanned", function(e, barcode, target)
|
||||
{
|
||||
if (target != "#barcode-taginput")
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
$("#barcode-taginput").tagsManager("pushTag", barcode);
|
||||
});
|
||||
|
Reference in New Issue
Block a user