mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-02-04 19:14:14 +00:00
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
This commit is contained in:
parent
e28e824a94
commit
07beae2a42
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user