From 1886e1b3a8b255cd5590b62ba5f9c324ba9533f6 Mon Sep 17 00:00:00 2001 From: RemixDev Date: Sat, 11 Apr 2020 00:21:30 +0200 Subject: [PATCH] Implemented fluent download bars --- public/js/downloadList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/downloadList.js b/public/js/downloadList.js index 07712f3..2c799fa 100644 --- a/public/js/downloadList.js +++ b/public/js/downloadList.js @@ -30,7 +30,6 @@ socket.on("updateQueue", function(update){ if (update.downloaded){ queueList[update.uuid].downloaded++ $("#download_"+update.uuid+" .queue_downloaded").text(queueList[update.uuid].downloaded) - $('#bar_' + update.uuid).css('width', ((queueList[update.uuid].downloaded + queueList[update.uuid].failed) / queueList[update.uuid].size)*100 + '%') } if (update.failed){ queueList[update.uuid].failed++ @@ -42,6 +41,7 @@ socket.on("updateQueue", function(update){ } if (update.progress){ queueList[update.uuid].progress = update.progress + $('#bar_' + update.uuid).css('width', update.progress + '%') } } })