Explorar el Código

Stag popup z-index fix

Vijayakrishnan hace 4 años
padre
commit
06c7dbdf3d
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  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();