Ver Fonte

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

Vijayakrishnan há 3 anos atrás
pai
commit
99d7319b33
2 ficheiros alterados com 14 adições e 2 exclusões
  1. 0 0
      public/js/yemi.js
  2. 14 2
      yemi.js

Diff do ficheiro suprimidas por serem muito extensas
+ 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();

Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff