mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
remove unused strings
This commit is contained in:
parent
5d6107d1cc
commit
08c6ef7935
4 changed files with 37 additions and 83 deletions
|
@ -11,17 +11,25 @@ define(['css!./indicators.css', 'material-icons'], function () {
|
|||
return false;
|
||||
}
|
||||
|
||||
function getProgressHtml(pct) {
|
||||
function getProgressHtml(pct, options) {
|
||||
|
||||
return '<div class="itemProgressBar"><div class="itemProgressBarForeground" style="width:' + pct + '%;"></div></div>';
|
||||
var containerClass = 'itemProgressBar';
|
||||
|
||||
if (options) {
|
||||
if (options.containerClass) {
|
||||
containerClass += ' ' + options.containerClass;
|
||||
}
|
||||
}
|
||||
|
||||
return '<div class="' + containerClass + '"><div class="itemProgressBarForeground" style="width:' + pct + '%;"></div></div>';
|
||||
}
|
||||
|
||||
function getProgressBarHtml(item) {
|
||||
function getProgressBarHtml(item, options) {
|
||||
|
||||
if (enableProgressIndicator(item)) {
|
||||
if (item.Type == "Recording" && item.CompletionPercentage) {
|
||||
|
||||
return getProgressHtml(item.CompletionPercentage);
|
||||
return getProgressHtml(item.CompletionPercentage, options);
|
||||
}
|
||||
|
||||
var userData = item.UserData;
|
||||
|
@ -30,7 +38,7 @@ define(['css!./indicators.css', 'material-icons'], function () {
|
|||
|
||||
if (pct && pct < 100) {
|
||||
|
||||
return getProgressHtml(pct);
|
||||
return getProgressHtml(pct, options);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue