瀏覽代碼

Stag popups - remove from DOM on close only if dynamic

Vijayakrishnan 3 年之前
父節點
當前提交
70910065ed
共有 1 個文件被更改,包括 1 次插入1 次删除
  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) {