mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-10 04:52:42 +01:00
Progress bar shows 100% for 0/0 episodes aired
New: Series progress bar will be filled for a new series with no unaired episodes.
This commit is contained in:
parent
a48dbba015
commit
86e81efc16
@ -165,7 +165,9 @@
|
||||
}
|
||||
}, //Next Airing
|
||||
{ sWidth: '140px', "mDataProp": "Episodes", "bSortable": false, "fnRender": function (row) {
|
||||
var progress = row.aData["EpisodeFileCount"] / row.aData["EpisodeCount"] * 100;
|
||||
var progress = 100;
|
||||
if (row.aData["EpisodeCount"] > 0)
|
||||
progress = row.aData["EpisodeFileCount"] / row.aData["EpisodeCount"] * 100;
|
||||
|
||||
var result = "<div class='progressBar' rel='" + progress + "'>" +
|
||||
"<span class='progressBarText'>" + row.aData["EpisodeFileCount"] + " / " + row.aData["EpisodeCount"] +"</span>" +
|
||||
|
Loading…
Reference in New Issue
Block a user