From 157fe75ca08db6e4896b35dc44145a3159dd1999 Mon Sep 17 00:00:00 2001 From: Aly Cerruti Date: Thu, 4 Nov 2021 17:07:50 -0700 Subject: [PATCH] Don't overwrite the HREFs for the Download IntelliJ/SBT buttons This should fix #1285 for good. In #1286, it was unbeknownst to me that there was JS that ended up editing the HREFs of the IntelliJ and SBT links, and so the code that was initially broken there remained broken. --- resources/js/functions.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/resources/js/functions.js b/resources/js/functions.js index ecaf3f786..8898a9aab 100644 --- a/resources/js/functions.js +++ b/resources/js/functions.js @@ -260,11 +260,7 @@ function getOS() { $(document).ready(function() { if ($(".main-download").length) { var os = getOS(); - var intelliJlink = $("#intellij-" + os).text(); - var sbtLink = $("#sbt-" + os).text(); - var stepOneContent = $("#stepOne-" + os).html() - $("#download-intellij-link").attr("href", intelliJlink); - $("#download-sbt-link").attr("href", sbtLink); + var stepOneContent = $("#stepOne-" + os).html(); $("#download-step-one").html(stepOneContent); } });