mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
don't persist lazy loaded paths
This commit is contained in:
parent
ea97f1efcc
commit
18abc62bc9
15 changed files with 33 additions and 31 deletions
|
@ -257,7 +257,7 @@
|
|||
if (item.LocationType == "Offline" || item.LocationType == "Virtual") {
|
||||
html += LibraryBrowser.getOfflineIndicatorHtml(item);
|
||||
} else {
|
||||
html += LibraryBrowser.getUnplayedIndicatorHtml(item);
|
||||
html += LibraryBrowser.getPlayedIndicatorHtml(item);
|
||||
}
|
||||
|
||||
html += "</a>";
|
||||
|
@ -879,7 +879,7 @@
|
|||
html += LibraryBrowser.getOfflineIndicatorHtml(item);
|
||||
}
|
||||
} else if (options.showUnplayedIndicator !== false) {
|
||||
html += LibraryBrowser.getUnplayedIndicatorHtml(item);
|
||||
html += LibraryBrowser.getPlayedIndicatorHtml(item);
|
||||
}
|
||||
html += '</div>';
|
||||
|
||||
|
@ -1087,16 +1087,10 @@
|
|||
return '<div class="posterRibbon missingPosterRibbon">Missing</div>';
|
||||
},
|
||||
|
||||
getUnplayedIndicatorHtml: function (item) {
|
||||
getPlayedIndicatorHtml: function (item) {
|
||||
|
||||
if (item.LocationType == 'Virtual') {
|
||||
return '';
|
||||
}
|
||||
|
||||
if (item.Type == "Series") {
|
||||
if (item.RecursiveUnplayedItemCount && item.PlayedPercentage) {
|
||||
return '<div class="posterRibbon">' + item.RecursiveUnplayedItemCount + ' Unwatched</div>';
|
||||
}
|
||||
if (item.RecursiveUnplayedItemCount) {
|
||||
return '<div class="unplayedIndicator">' + item.RecursiveUnplayedItemCount + '</div>';
|
||||
}
|
||||
|
||||
return '';
|
||||
|
@ -1455,7 +1449,7 @@
|
|||
return html;
|
||||
},
|
||||
|
||||
getItemProgressBarHtml: function (item, includeText) {
|
||||
getItemProgressBarHtml: function (item) {
|
||||
|
||||
var html = '';
|
||||
|
||||
|
@ -1485,10 +1479,6 @@
|
|||
|
||||
html += '<progress title="' + tooltip + '" class="itemProgressBar" min="0" max="100" value="' + pct + '">';
|
||||
html += '</progress>';
|
||||
|
||||
if (includeText) {
|
||||
html += '<span class="itemProgressText">' + tooltip + '</span>';
|
||||
}
|
||||
}
|
||||
|
||||
return html;
|
||||
|
@ -1498,10 +1488,6 @@
|
|||
|
||||
var html = '';
|
||||
|
||||
if (item.Type != "Audio" && item.Type != "Season" && item.Type != "Series") {
|
||||
html += LibraryBrowser.getItemProgressBarHtml(item, true);
|
||||
}
|
||||
|
||||
var userData = item.UserData || {};
|
||||
|
||||
var itemId = item.Id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue