diff --git a/public/viewjs/productform.js b/public/viewjs/productform.js index 8e75d1c8..22c2b23b 100644 --- a/public/viewjs/productform.js +++ b/public/viewjs/productform.js @@ -67,11 +67,14 @@ } 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")) { window.close(); } - else if (redirectDestination == "reload") + if (redirectDestination == "reload") { window.location.reload(); }