1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 01:27:28 +00:00

fix progressbar color regression

This commit is contained in:
Jordan Lee 2011-08-28 14:57:13 +00:00
parent dd2033107f
commit 1d69770227

View file

@ -84,16 +84,16 @@ TorrentRendererHelper.renderProgressbar = function(controller, t, progressbar)
} }
if (e.style.display !== display) if (e.style.display !== display)
e.style.display = display; e.style.display = display;
if (e.style.className !== info.complete) if (e.className !== info.complete)
e.style.className = info.complete; e.className = info.complete;
// update the incomplete progressbar // update the incomplete progressbar
e = progressbar.incomplete; e = progressbar.incomplete;
display = (info.percent < 100) ? 'block' : 'none'; display = (info.percent < 100) ? 'block' : 'none';
if (e.style.display !== display) if (e.style.display !== display)
e.style.display = display; e.style.display = display;
if (e.style.className !== info.incomplete) if (e.className !== info.incomplete)
e.style.className = info.incomplete; e.className = info.incomplete;
}; };
TorrentRendererHelper.formatUL = function(t) TorrentRendererHelper.formatUL = function(t)