Sfoglia il codice sorgente

Moe - support [redir] even when inside a parent stag-popup

Vijayakrishnan 3 anni fa
parent
commit
99d7319b33
2 ha cambiato i file con 14 aggiunte e 2 eliminazioni
  1. 0 0
      public/js/yemi.js
  2. 14 2
      yemi.js

File diff suppressed because it is too large
+ 0 - 0
public/js/yemi.js


+ 14 - 2
yemi.js

@@ -514,7 +514,13 @@ var initMoes = function() {
                             hideMask();
                             runMCHook(hook);
                         } else if(isDynamicStagPopupPresent()) {
-                            refreshDynamicStagPopup();
+                            let targetUrl = false;
+                            if (redir) {
+                                if (redir.indexOf('[data]') > -1) {
+                                    targetUrl = redir.replace('[data]', data);
+                                }
+                            }
+                            refreshDynamicStagPopup(targetUrl);
                         } else if (redir) {
                             if (redir == "back") {
                                 window.top.history.back();
@@ -560,7 +566,13 @@ var initMoes = function() {
                             hideMask();
                             runMCHook(hook);
                         } else if(isDynamicStagPopupPresent()) {
-                            refreshDynamicStagPopup();
+                            let targetUrl = false;
+                            if (redir) {
+                                if (redir.indexOf('[data]') > -1) {
+                                    targetUrl = redir.replace('[data]', data);
+                                }
+                            }
+                            refreshDynamicStagPopup(targetUrl);
                         } else if (redir) {
                             if (redir == "back") {
                                 window.top.history.back();

Some files were not shown because too many files changed in this diff