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:
Marc Ole Bulling 2019-10-15 00:43:45 +02:00 committed by GitHub
parent 9ba66aeac2
commit 81ec1ae39e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,7 +67,11 @@
}
else
{
if (redirectDestination == "reload")
if (window.location.href.includes("closeAfterCreation"))
{
window.close();
}
else if (redirectDestination == "reload")
{
window.location.reload();
}