浏览代码

Fix version selector at startup

Virgile Bello 5 年之前
父节点
当前提交
f355805aff
共有 1 个文件被更改,包括 0 次插入11 次删除
  1. 0 11
      en/template/styles/main.js

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

@@ -164,17 +164,6 @@ $(function () {
     }
   }
   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 () {
       var hostVersion = window.location.host;
       var pathVersion = window.location.pathname;