mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 12:26:15 +02:00
Add GET parameter to close window after product creation
PR for issue #419 This only works when the window was opened by Javascript (eg. from a third party plugin like Barcode Buddy)
This commit is contained in:
parent
9ba66aeac2
commit
81ec1ae39e
|
|
@ -67,7 +67,11 @@
|
|||
}
|
||||
else
|
||||
{
|
||||
if (redirectDestination == "reload")
|
||||
if (window.location.href.includes("closeAfterCreation"))
|
||||
{
|
||||
window.close();
|
||||
}
|
||||
else if (redirectDestination == "reload")
|
||||
{
|
||||
window.location.reload();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user