mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 20:36:15 +02:00
Added flow if window closing fails
If the window could not be closed, the normal flow continues Added comments
This commit is contained in:
parent
81ec1ae39e
commit
bc0035ebc2
|
|
@ -67,11 +67,14 @@
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
/* If the GET parameter "closeAfterCreation" was passed to the form, it will
|
||||||
|
automatically close after creating the product. This only works if the window
|
||||||
|
was opened with javascript */
|
||||||
if (window.location.href.includes("closeAfterCreation"))
|
if (window.location.href.includes("closeAfterCreation"))
|
||||||
{
|
{
|
||||||
window.close();
|
window.close();
|
||||||
}
|
}
|
||||||
else if (redirectDestination == "reload")
|
if (redirectDestination == "reload")
|
||||||
{
|
{
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user