mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-30 19:45:57 +00:00
Progress Bars show again
This commit is contained in:
parent
35511a8b76
commit
27d9592b41
1 changed files with 11 additions and 12 deletions
|
@ -172,7 +172,7 @@
|
||||||
if (row.aData["EpisodeCount"] > 0)
|
if (row.aData["EpisodeCount"] > 0)
|
||||||
progress = row.aData["EpisodeFileCount"] / row.aData["EpisodeCount"] * 100;
|
progress = row.aData["EpisodeFileCount"] / row.aData["EpisodeCount"] * 100;
|
||||||
|
|
||||||
var result = "<div class='progressBar' rel='" + progress + "'>" +
|
var result = "<div class='progressBar' data-value='" + progress + "'>" +
|
||||||
"<span class='progressBarText'>" + row.aData["EpisodeFileCount"] + " / " + row.aData["EpisodeCount"] +"</span>" +
|
"<span class='progressBarText'>" + row.aData["EpisodeFileCount"] + " / " + row.aData["EpisodeCount"] +"</span>" +
|
||||||
"</div>";
|
"</div>";
|
||||||
|
|
||||||
|
@ -196,20 +196,19 @@
|
||||||
"fnCreatedRow": function( nRow, aData, iDataIndex ) {
|
"fnCreatedRow": function( nRow, aData, iDataIndex ) {
|
||||||
$(nRow).addClass(aData["SeriesId"].toString());
|
$(nRow).addClass(aData["SeriesId"].toString());
|
||||||
},
|
},
|
||||||
"oLanguage": {
|
"fnRowCallback": function (nRow, aData, iDisplayIndex, iDisplayIndexFull) {
|
||||||
"sEmptyTable": "No series have been added"
|
var element = $(nRow).find('.progressBar');
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$(".progressBar").each(function () {
|
|
||||||
var element = this;
|
|
||||||
|
|
||||||
var progressbar = $(element).progressbar({
|
var progressbar = $(element).progressbar({
|
||||||
value: parseInt($(element).attr("rel"))
|
value: parseInt($(element).attr("data-value"))
|
||||||
});
|
});
|
||||||
|
|
||||||
var label = progressbar.find('.progressBarText').clone().width(progressbar.width());
|
var label = progressbar.find('.progressBarText').clone().width(progressbar.width());
|
||||||
progressbar.find('.ui-progressbar-value').append(label);
|
progressbar.find('.ui-progressbar-value').append(label);
|
||||||
|
},
|
||||||
|
"oLanguage": {
|
||||||
|
"sEmptyTable": "No series have been added"
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue