Revamped modal iframe dialog handling

This commit is contained in:
Bernd Bestel
2025-01-10 17:15:09 +01:00
parent 1900a5b8a2
commit 201bda93a2
33 changed files with 175 additions and 118 deletions

View File

@@ -124,7 +124,7 @@ Grocy.Components.BarcodeScanner.StartScanning = function()
window.localStorage.removeItem("cameraId");
setTimeout(function()
{
bootbox.hideAll();
$(".modal").last().modal("hide");
}, 500);
return;
}
@@ -142,7 +142,7 @@ Grocy.Components.BarcodeScanner.StopScanning = function()
Grocy.Components.BarcodeScanner.DecodedCodesCount = 0;
Grocy.Components.BarcodeScanner.DecodedCodesErrorCount = 0;
bootbox.hideAll();
$(".modal").last().modal("hide");
}
Grocy.Components.BarcodeScanner.TorchOn = function(track)