From 225b5f37b700bf9ceb4428def2c2eacb3b4d891d Mon Sep 17 00:00:00 2001 From: cbdev Date: Sun, 21 Jan 2024 16:05:09 +0100 Subject: Add size indication to download all --- assets/cargohold.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'assets') 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(); -- cgit v1.2.3