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

@@ -23,7 +23,7 @@
Grocy.EditObjectId = result.created_object_id;
Grocy.Components.UserfieldsForm.Save(function()
{
window.parent.postMessage(WindowMessageBag("CloseAllModals"), U("/productgroups"));
window.parent.postMessage(WindowMessageBag("CloseLastModal"), Grocy.BaseUrl);
});
},
function(xhr)
@@ -40,7 +40,7 @@
{
Grocy.Components.UserfieldsForm.Save(function()
{
window.parent.postMessage(WindowMessageBag("CloseAllModals"), U("/productgroups"));
window.parent.postMessage(WindowMessageBag("CloseLastModal"), Grocy.BaseUrl);
});
},
function(xhr)