From a90ed6c3bebff4cb8d1ef075419e7fab8b1d8bd1 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Wed, 4 Oct 2023 17:34:10 -0400 Subject: [PATCH] =?utf8?q?=E2=9D=8C=20marks=20the=20spot?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- webcit-ng/static/js/upload.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webcit-ng/static/js/upload.js b/webcit-ng/static/js/upload.js index a8c3b9bb8..c253471e1 100644 --- a/webcit-ng/static/js/upload.js +++ b/webcit-ng/static/js/upload.js @@ -84,7 +84,9 @@ function upload_file(file) { // Add these uploads to the displayed list j_response.forEach((item) => { let new_upl = document.createElement("li"); - new_upl.innerHTML = "Ref: " + item["ref"] + " , Filename: " + item["uploadfilename"] + " , Content-type: " + item["contenttype"] + " , Length: " + item["contentlength"]; + // item["ref"] is what we need + new_upl.innerHTML = `❌` + + item["uploadfilename"] + " (" + item["contenttype"] + ", " + item["contentlength"] + " " + _("bytes") + ")"; document.getElementById("ctdl-upload_list").appendChild(new_upl); }); -- 2.30.2