From db75bc242a4b3e0a067fb42f09e234142e0547a9 Mon Sep 17 00:00:00 2001 From: JiaJia Ji Date: Tue, 8 Oct 2024 12:54:57 +0200 Subject: [PATCH] [Bug]: Fix empty window remains after upload failure or on cancel (#714) --- public/js/pimcore/helpers.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/js/pimcore/helpers.js b/public/js/pimcore/helpers.js index c8b3008d4..23452c678 100644 --- a/public/js/pimcore/helpers.js +++ b/public/js/pimcore/helpers.js @@ -1078,7 +1078,6 @@ pimcore.helpers.uploadDialog = function (url, filename, success, failure, descri autoHeight: true, autoScroll: true }); - win.show(); const finishedErrorHandler = function (pbar) { activeUploads--; @@ -1101,6 +1100,10 @@ pimcore.helpers.uploadDialog = function (url, filename, success, failure, descri style: "margin-bottom: 5px" }); + if (!win.isVisible()){ + win.show(); + } + win.add(pbar); win.updateLayout();