mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fixed movie year display
This commit is contained in:
parent
6915c52297
commit
a787772df7
2 changed files with 4 additions and 3 deletions
|
@ -377,7 +377,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function renderChildren(page, item) {
|
function renderChildren(page, item) {
|
||||||
var sortBy = item.Type == "Boxset" ? "ProductionYear,SortName" : "SortName";
|
|
||||||
|
var sortBy = item.Type == "BoxSet" ? "ProductionYear,SortName" : "SortName";
|
||||||
|
|
||||||
ApiClient.getItems(Dashboard.getCurrentUserId(), {
|
ApiClient.getItems(Dashboard.getCurrentUserId(), {
|
||||||
|
|
||||||
|
|
|
@ -1294,7 +1294,7 @@
|
||||||
if (linkToGallery) {
|
if (linkToGallery) {
|
||||||
html += "<a class='itemDetailGalleryLink' href='" + href + "'>";
|
html += "<a class='itemDetailGalleryLink' href='" + href + "'>";
|
||||||
}
|
}
|
||||||
|
|
||||||
html += "<img class='itemDetailImage' src='" + url + "' />";
|
html += "<img class='itemDetailImage' src='" + url + "' />";
|
||||||
|
|
||||||
if (linkToGallery) {
|
if (linkToGallery) {
|
||||||
|
@ -1357,7 +1357,7 @@
|
||||||
else if (item.PremiereDate) {
|
else if (item.PremiereDate) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
text = "-" + parseISO8601Date(item.PremiereDate, { toLocal: true }).getFullYear();
|
text = parseISO8601Date(item.PremiereDate, { toLocal: true }).getFullYear();
|
||||||
miscInfo.push(text);
|
miscInfo.push(text);
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue