projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c61a46b
)
❌ marks the spot
author
Art Cancro
<ajc@citadel.org>
Wed, 4 Oct 2023 21:34:10 +0000
(17:34 -0400)
committer
Art Cancro
<ajc@citadel.org>
Wed, 4 Oct 2023 21:34:10 +0000
(17:34 -0400)
webcit-ng/static/js/upload.js
patch
|
blob
|
history
diff --git
a/webcit-ng/static/js/upload.js
b/webcit-ng/static/js/upload.js
index a8c3b9bb8784fb650c4203c4643ee8445b1b26f3..c253471e1cb234b1da6b269ddd471c838dd38de7 100644
(file)
--- 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");
// 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 = `<a href="xxx">❌</a>`
+ + item["uploadfilename"] + " (" + item["contenttype"] + ", " + item["contentlength"] + " " + _("bytes") + ")";
document.getElementById("ctdl-upload_list").appendChild(new_upl);
});
document.getElementById("ctdl-upload_list").appendChild(new_upl);
});