From a936c6479486f9402149eadfc83363aba7c059a5 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 30 Sep 2020 12:56:27 +0200 Subject: [PATCH] Fix modal not closing when opening snapshot --- www/common/common-ui-elements.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index edb0737de..c2c902b89 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -3336,7 +3336,6 @@ define([ load(hash, s); if (modal && modal.closeModal) { modal.closeModal(); - UIElements.openSnapshotsModal(common, load, make, remove); } }); @@ -3393,6 +3392,9 @@ define([ var val = $input.val(); if (!val) { return true; } make(val); + setTimeout(function () { + UIElements.openSnapshotsModal(common, load, make, remove); + }); }, keys: [], });