diff --git a/NzbDrone.Web/Views/Series/Index.cshtml b/NzbDrone.Web/Views/Series/Index.cshtml
index 22b6ab23a..51926e53b 100644
--- a/NzbDrone.Web/Views/Series/Index.cshtml
+++ b/NzbDrone.Web/Views/Series/Index.cshtml
@@ -172,7 +172,7 @@
if (row.aData["EpisodeCount"] > 0)
progress = row.aData["EpisodeFileCount"] / row.aData["EpisodeCount"] * 100;
- var result = "
" +
+ var result = "
" +
"" + row.aData["EpisodeFileCount"] + " / " + row.aData["EpisodeCount"] +"" +
"
";
@@ -196,21 +196,20 @@
"fnCreatedRow": function( nRow, aData, iDataIndex ) {
$(nRow).addClass(aData["SeriesId"].toString());
},
+ "fnRowCallback": function (nRow, aData, iDisplayIndex, iDisplayIndexFull) {
+ var element = $(nRow).find('.progressBar');
+
+ var progressbar = $(element).progressbar({
+ value: parseInt($(element).attr("data-value"))
+ });
+
+ var label = progressbar.find('.progressBarText').clone().width(progressbar.width());
+ progressbar.find('.ui-progressbar-value').append(label);
+ },
"oLanguage": {
"sEmptyTable": "No series have been added"
}
});
-
- $(".progressBar").each(function () {
- var element = this;
-
- var progressbar = $(element).progressbar({
- value: parseInt($(element).attr("rel"))
- });
-
- var label = progressbar.find('.progressBarText').clone().width(progressbar.width());
- progressbar.find('.ui-progressbar-value').append(label);
- });
});
//After we delete a series do this...