Bläddra i källkod

Stag popups - remove from DOM on close only if dynamic

Vijayakrishnan 3 år sedan
förälder
incheckning
70910065ed
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      public/js/stag-popup.js

+ 1 - 1
public/js/stag-popup.js

@@ -56,7 +56,7 @@ function closeStagPopup(_noEvent = false) {
     }
 
     // remove from the DOM
-    popup.remove();
+    if(popup.is('.dynamic-popup')) popup.remove();
 
     // if all closed
     if(!stagPopupsQueue.length) {