From 1d6977022778bec50f6fb2b588ef6ba626d61883 Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Sun, 28 Aug 2011 14:57:13 +0000 Subject: [PATCH] fix progressbar color regression --- web/javascript/torrent-row.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/javascript/torrent-row.js b/web/javascript/torrent-row.js index 76589a9c9..3acedfb00 100644 --- a/web/javascript/torrent-row.js +++ b/web/javascript/torrent-row.js @@ -84,16 +84,16 @@ TorrentRendererHelper.renderProgressbar = function(controller, t, progressbar) } if (e.style.display !== display) e.style.display = display; - if (e.style.className !== info.complete) - e.style.className = info.complete; + if (e.className !== info.complete) + e.className = info.complete; // update the incomplete progressbar e = progressbar.incomplete; display = (info.percent < 100) ? 'block' : 'none'; if (e.style.display !== display) e.style.display = display; - if (e.style.className !== info.incomplete) - e.style.className = info.incomplete; + if (e.className !== info.incomplete) + e.className = info.incomplete; }; TorrentRendererHelper.formatUL = function(t) -- 2.40.0