]> granicus.if.org Git - transmission/commitdiff
fix progressbar color regression
authorJordan Lee <jordan@transmissionbt.com>
Sun, 28 Aug 2011 14:57:13 +0000 (14:57 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Sun, 28 Aug 2011 14:57:13 +0000 (14:57 +0000)
web/javascript/torrent-row.js

index 76589a9c9f4e24db3ee0b490cf8ba3089ac89ef9..3acedfb00f9754752601242260454930c6c48c6f 100644 (file)
@@ -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)