From 07beae2a42c1386d233156265671c9a50ba92965 Mon Sep 17 00:00:00 2001 From: Simon Grim Date: Thu, 19 Nov 2015 22:22:32 +0500 Subject: [PATCH] fix unwanted minimizing of active modal in case of resuming of some other minimized modal in case if it happens not in result of clicking on it's resume button --- js/interface_common.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/interface_common.js b/js/interface_common.js index 655a7ba..68d89b0 100644 --- a/js/interface_common.js +++ b/js/interface_common.js @@ -524,6 +524,9 @@ function watchHashChange(e) { function loadModalFromHash() { if (_minimizedModals[window.location.hash]) { + // need to remove active modal before btnResume.click() or it will be minimized in resumeModal() + // e.g. for case when you click on profile link in some modal having this profile's modal minimized already + $('.modal-wrapper:not(#templates *)').remove(); _minimizedModals[window.location.hash].btnResume.click(); return; }