mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update movie guide
This commit is contained in:
parent
ad2a1b493d
commit
9e9251245f
2 changed files with 31 additions and 8 deletions
|
@ -986,6 +986,8 @@
|
|||
|
||||
primaryImageAspectRatio = LibraryBrowser.getAveragePrimaryImageAspectRatio([item]);
|
||||
|
||||
if (options.showPremiereDateIndex) {
|
||||
|
||||
var futureDateText;
|
||||
|
||||
if (item.PremiereDate) {
|
||||
|
@ -998,7 +1000,27 @@
|
|||
}
|
||||
}
|
||||
|
||||
if (options.showPremiereDateIndex && futureDateText) {
|
||||
var val = futureDateText || Globalize.translate('HeaderUnknownDate');
|
||||
|
||||
if (val != currentIndexValue) {
|
||||
|
||||
html += '<h2 class="timelineHeader detailSectionHeader" style="text-align:center;">' + val + '</h2>';
|
||||
currentIndexValue = val;
|
||||
}
|
||||
}
|
||||
else if (options.showStartDateIndex) {
|
||||
|
||||
var futureDateText;
|
||||
|
||||
if (item.StartDate) {
|
||||
try {
|
||||
|
||||
futureDateText = LibraryBrowser.getFutureDateText(parseISO8601Date(item.StartDate, { toLocal: true }), true);
|
||||
|
||||
} catch (err) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
var val = futureDateText || Globalize.translate('HeaderUnknownDate');
|
||||
|
||||
|
|
|
@ -52,8 +52,7 @@
|
|||
limit: query.Limit,
|
||||
totalRecordCount: result.TotalRecordCount,
|
||||
viewButton: true,
|
||||
showLimit: false,
|
||||
addSelectionButton: true
|
||||
showLimit: false
|
||||
});
|
||||
|
||||
$('.listTopPaging', page).html(pagingHtml).trigger('create');
|
||||
|
@ -69,6 +68,7 @@
|
|||
showTitle: false,
|
||||
centerText: true,
|
||||
lazy: true,
|
||||
showStartDateIndex: true,
|
||||
overlayText: false,
|
||||
showProgramAirInfo: true
|
||||
});
|
||||
|
@ -79,6 +79,7 @@
|
|||
shape: "portrait",
|
||||
context: 'livetv',
|
||||
showTitle: true,
|
||||
showStartDateIndex: true,
|
||||
lazy: true,
|
||||
cardLayout: true,
|
||||
showProgramAirInfo: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue