Browse Source

Fix version selector at startup

Virgile Bello 5 years ago
parent
commit
f355805aff
1 changed files with 0 additions and 11 deletions
  1. 0 11
      en/template/styles/main.js

+ 0 - 11
en/template/styles/main.js

@@ -164,17 +164,6 @@ $(function () {
     }
     }
   }
   }
   function redirectToCurrentDocVersion() {
   function redirectToCurrentDocVersion() {
-    // Set current doc version at start of page
-    if ($('#stride-current-version').length > 0) {
-      var urlSplits = window.location.pathname.split('/');
-      var urlVersion = urlSplits[1];
-      if ($('#stride-current-version option[value="' + urlVersion + '"]').length <= 0) {
-        $("#stride-current-version").val('latest');
-      } else {
-        $("#stride-current-version").val(urlVersion);
-      }
-
-    }
     $('#stride-current-version').on('change', function () {
     $('#stride-current-version').on('change', function () {
       var hostVersion = window.location.host;
       var hostVersion = window.location.host;
       var pathVersion = window.location.pathname;
       var pathVersion = window.location.pathname;