From 37c93e352b74e8fccdfadb6cddfdf16e85eab1e5 Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Sun, 15 Dec 2019 19:39:07 +0000 Subject: [PATCH] Make Downloading a link --- webui/src/main/js/search.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webui/src/main/js/search.js b/webui/src/main/js/search.js index 8d944c81..1a5085a5 100644 --- a/webui/src/main/js/search.js +++ b/webui/src/main/js/search.js @@ -183,7 +183,7 @@ class ResultFromSender { getDownloadBlock() { if (this.downloading == "true") - return _t("Downloading") + return "" + _t("Downloading") + "" var link = "" + _t("Download") + "" var block = "" + link + "" return block @@ -241,7 +241,7 @@ class Result { } getDownloadBlock() { if (this.downloading == "true") - return _t("Downloading") + return "" + _t("Downloading") + "" var link = "" + _t("Download") + "" var block = "" + link + "" return block @@ -510,7 +510,7 @@ function download(resultInfoHash) { xmlhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { var resultSpan = document.getElementById("download-"+resultInfoHash); - resultSpan.innerHTML = _t("Downloading"); + resultSpan.innerHTML = "" + _t("Downloading") + "" } } xmlhttp.open("POST", "/MuWire/Download", true);