Explorar el Código

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

Vijayakrishnan hace 3 años
padre
commit
99d7319b33
Se han modificado 2 ficheros con 14 adiciones y 2 borrados
  1. 0 0
      public/js/yemi.js
  2. 14 2
      yemi.js

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 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();

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio