From d7103027037e6d899fd0f7dce3a83a9a52e09ddb Mon Sep 17 00:00:00 2001 From: Yang Shi Date: Fri, 5 Jun 2020 09:38:02 -0700 Subject: [PATCH] Revert installation dropdown change (#18488) This broke the version selector. Co-authored-by: Yang Shi --- .../_includes/get_started/get_started.html | 19 +++++++++++-------- docs/static_site/src/assets/js/options.js | 4 ++-- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/docs/static_site/src/_includes/get_started/get_started.html b/docs/static_site/src/_includes/get_started/get_started.html index 1e4f6f055fea..cda32adfb1ad 100644 --- a/docs/static_site/src/_includes/get_started/get_started.html +++ b/docs/static_site/src/_includes/get_started/get_started.html @@ -22,19 +22,22 @@

Installing MXNet

diff --git a/docs/static_site/src/assets/js/options.js b/docs/static_site/src/assets/js/options.js index 656dba6f4132..e495f167381e 100644 --- a/docs/static_site/src/assets/js/options.js +++ b/docs/static_site/src/assets/js/options.js @@ -52,7 +52,7 @@ $(document).ready(function () { versionSelect = urlParams.get('version'); $('li.versions').removeClass('active'); $('li.versions').each(function () { is_a_match($(this), versionSelect) }); - $('.current-version').html("Version: " + versionSelect + ''); + $('.current-version').html(versionSelect + ''); queryString += 'version=' + versionSelect + '&'; } if (urlParams.get('platform')) { @@ -109,7 +109,7 @@ $(document).ready(function () { el.siblings().removeClass('active'); el.addClass('active'); if ($(this).hasClass("versions")) { - $('.current-version').html("Version: " + $(this).text()); + $('.current-version').html($(this).text()); urlParams.set("version", $(this).text()); } else if ($(this).hasClass("platforms")) { urlParams.set("platform", label($(this).text()));