aboutsummaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2024-01-21 16:05:09 +0100
committercbdev <cb@cbcdn.com>2024-01-21 16:05:09 +0100
commit225b5f37b700bf9ceb4428def2c2eacb3b4d891d (patch)
tree226536a58436cb793ae9e8b89437259403ad3230 /assets
parent0c3ab4200dbb58038ac2ec4a4cdd78729a7e21b3 (diff)
downloadcargohold-225b5f37b700bf9ceb4428def2c2eacb3b4d891d.tar.gz
cargohold-225b5f37b700bf9ceb4428def2c2eacb3b4d891d.tar.bz2
cargohold-225b5f37b700bf9ceb4428def2c2eacb3b4d891d.zip
Add size indication to download all
Diffstat (limited to 'assets')
-rw-r--r--assets/cargohold.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/assets/cargohold.js b/assets/cargohold.js
index 2a4ca76..a9cb718 100644
--- a/assets/cargohold.js
+++ b/assets/cargohold.js
@@ -139,6 +139,8 @@ function listing_update(){
for(let i = 0; i < data.files.length; i++){
listing_add(data.files[i], data.display);
}
+
+ element("download-all").innerText = "Download all (" + data.files.length + " Files, " + (total / 1024 /1024) + "MB)";
};
req.open("GET", "listing");
req.send();