From 1339a6df4cacd47a8b497d87ffc5c4cfff8da116 Mon Sep 17 00:00:00 2001 From: Kevin Glowacz Date: Thu, 30 Jul 2009 19:03:37 +0000 Subject: [PATCH] (trunk web) don't invert the progress bar --- web/javascript/torrent.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/web/javascript/torrent.js b/web/javascript/torrent.js index a78ec0180..55201e97a 100644 --- a/web/javascript/torrent.js +++ b/web/javascript/torrent.js @@ -468,12 +468,13 @@ Torrent.prototype = var seedRatioRatio = this._upload_ratio / this.seedRatioLimit(); var seedRatioPercent = Math.round( seedRatioRatio * 100 * MaxBarWidth ) / 100; + // Set progress to percent seeded + root._progress_complete_container.style.width = seedRatioPercent + '%'; + + // Update the 'incomplete' bar root._progress_incomplete_container.className = 'torrent_progress_bar incomplete seeding' root._progress_incomplete_container.style.display = 'block'; - root._progress_incomplete_container.style.width = seedRatioPercent + '%'; - - // Set progress to maximum - root._progress_complete_container.style.width = MaxBarWidth - seedRatioPercent + '%'; + root._progress_incomplete_container.style.width = MaxBarWidth - seedRatioPercent + '%'; } else {