From 38bf9133da818963be979bc9d32617fa735af2bf Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Fri, 17 Aug 2018 05:06:46 +0000 Subject: [PATCH] How does percentage work again? --- webapp/titanembeds/static/js/embed.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/titanembeds/static/js/embed.js b/webapp/titanembeds/static/js/embed.js index 39f4eee..83633b5 100644 --- a/webapp/titanembeds/static/js/embed.js +++ b/webapp/titanembeds/static/js/embed.js @@ -164,7 +164,7 @@ // For handling the progress of the upload myXhr.upload.addEventListener('progress', function(e) { if (e.lengthComputable) { - $("#filemodalprogress-inner").css("width", (e.loaded/e.total) + "%") + $("#filemodalprogress-inner").css("width", (e.loaded/e.total) * 100 + "%") } } , false); }