mirror of
https://github.com/grocy/grocy.git
synced 2025-08-21 12:52:39 +00:00
Optimized camera barcode scanner component
This commit is contained in:
@@ -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");
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user