Explorar o código

MC support for queryline params

Vijayakrishnan %!s(int64=4) %!d(string=hai) anos
pai
achega
e91d9701dd
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      public/js/mc.js
  2. 1 1
      public/js/yemi.js

+ 1 - 1
public/js/mc.js

@@ -52,7 +52,7 @@ $(document).ready(function () {
     // }
 
     // populate history on fresh load
-    var target = window.top.location.pathname;
+    var target = window.top.location.pathname + window.top.location.search;
     if (target.indexOf('/mc') === 0) {
         target = target.split('/mc')[1];
     }

+ 1 - 1
public/js/yemi.js

@@ -195,7 +195,7 @@ var pageReload = function () {
 };
 
 var fastReload = function() {
-    var targetLocation = window.top.location.pathname;
+    var targetLocation = window.top.location.pathname + window.top.location.search;
     if(targetLocation.indexOf('/mc') === 0) {
         targetLocation = targetLocation.substr(3);
     }