Ver Fonte

MC > do not autoscroll to top if only query-line params are different

Vijayakrishnan há 4 anos atrás
pai
commit
009290f908
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      public/js/mc.js

+ 1 - 1
public/js/mc.js

@@ -165,7 +165,7 @@ function onFastLoaded(_data, _href, _history) {
                 initPrimaryForm();
                 initPatientPresenceIndicator();
                 runMCInitializers();
-                if (window.top.currentMcUrl !== window.top.location.href) {
+                if (window.top.currentMcUrl.split('?')[0] !== window.top.location.href.split('?')[0]) {
                     $(window).scrollTop(0);
                 }
                 window.top.currentMcUrl = window.top.location.href;