Optimized camera barcode scanner component

This commit is contained in:
Bernd Bestel 2025-01-13 00:09:28 +01:00
parent 96059a1b32
commit e7cea3d949
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

@ -199,6 +199,7 @@ Quagga.onDetected(function(result)
{
Grocy.Components.CameraBarcodeScanner.StopScanning();
$(document).trigger("Grocy.BarcodeScanned", [result.codeResult.code, Grocy.Components.CameraBarcodeScanner.CurrentTarget]);
$(".modal").last().modal("hide");
}
});