Update download.js

This commit is contained in:
robbielj 2014-03-14 14:01:14 +01:00
parent e129e7c034
commit 809591bd62

View File

@ -318,7 +318,7 @@ function(
delete ctx.bittorrent; delete ctx.bittorrent;
} }
ctx.name = btName || dlName || "Unknown"; ctx.name = btName || dlName || "Unknown";
// collapse the download details initially // collapse the download details initially
if (ctx.collapsed === undefined) { if (ctx.collapsed === undefined) {
@ -353,7 +353,7 @@ function(
return (d.totalLength-d.completedLength) / d.downloadSpeed; return (d.totalLength-d.completedLength) / d.downloadSpeed;
} }
scope.getProgressClass = function(d) { scope.getProgressClass = function(d) {
switch (d.status) { switch (d.status) {
case "paused": case "paused":
return "progress-info"; return "progress-info";