More modal iframe dialog handling improvements

This commit is contained in:
Bernd Bestel
2025-01-11 12:06:15 +01:00
parent 5721c4bd62
commit 2c0b1a7be0
54 changed files with 110 additions and 79 deletions

View File

@@ -927,6 +927,8 @@ $(document).on("click", ".display-recipe-button", function(e)
Grocy.Api.Put('objects/recipes/' + objectId, { "desired_servings": servings },
function(result)
{
$("body").addClass("fullscreen-card");
bootbox.dialog({
message: '<iframe class="embed-responsive" src="' + U("/recipes?embedded&recipe=") + objectId + '#fullscreen"></iframe>',
size: 'extra-large',