Bladeren bron

Stag popup z-index fix

Vijayakrishnan 4 jaren geleden
bovenliggende
commit
06c7dbdf3d
1 gewijzigde bestanden met toevoegingen van 6 en 0 verwijderingen
  1. 6 0
      public/js/stag-popup.js

+ 6 - 0
public/js/stag-popup.js

@@ -3,6 +3,12 @@ function showStagPopup(_key, _noAutoFocus) {
     /*$('html, body').addClass('no-scroll');
     $(window.top.document.body).find('#stag_mcp_lhs').addClass('no-scroll');*/
     let stagPopup = $('[stag-popup-key="' + _key + '"]');
+    if(stagPopup.is('.show')) return false;
+    else {
+        let zIndex = $('.stag-popup.show[stag-popup-key]').last().css('z-index');
+        if(zIndex) zIndex++; else zIndex = 100;
+        stagPopup.css('z-index', zIndex);
+    }
     stagPopup.addClass('show');
     stagPopup.find('[moe][initialized]').removeAttr('initialized');
     initMoes();