From 69f6769d52b66929abf352b596ccae7329462951 Mon Sep 17 00:00:00 2001 From: n1474335 Date: Tue, 21 Mar 2017 23:06:51 +0000 Subject: [PATCH] Removed jQuery and reference to window object from Utils code. --- src/js/core/Utils.js | 32 +++++++++++++------------------- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/src/js/core/Utils.js b/src/js/core/Utils.js index abee0c50..405249a1 100755 --- a/src/js/core/Utils.js +++ b/src/js/core/Utils.js @@ -1032,32 +1032,26 @@ var Utils = { [new Uint8Array(file.bytes)], {type: "octet/stream"} ); - var blobUrl = window.URL.createObjectURL(blob); + var blobUrl = URL.createObjectURL(blob); - var downloadAnchorElem = $("") - .html("\u21B4") - .attr("href", blobUrl) - .attr("title", "Download '" + file.fileName + "'") - .attr("download", file.fileName); + var downloadAnchorElem = "\u21B4"; - var expandFileContentsElem = $("") - .html("🔍") - .addClass("collapsed") - .attr("data-toggle", "collapse") - .attr("aria-expanded", "true") - .attr("aria-controls", "collapse" + i) - .attr("href", "#collapse" + i) - .attr("title", "Show/hide contents of '" + file.fileName + "'"); + var expandFileContentsElem = "🔍"; var html = "
" + "