mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
restore people fields
This commit is contained in:
parent
aa454b2f24
commit
e17ea4ac1e
5 changed files with 52 additions and 12 deletions
|
@ -320,14 +320,14 @@
|
|||
}
|
||||
|
||||
if (item.Type == "Person") {
|
||||
$('#lblPremiereDate', page).html(Globalize.translate('LabelBirthDate'));
|
||||
$('#lblYear', page).html(Globalize.translate('LabelBirthYear'));
|
||||
$('#lblEndDate', page).html(Globalize.translate('LabelDeathDate'));
|
||||
page.querySelector('#txtPremiereDate').label = Globalize.translate('LabelBirthDate');
|
||||
page.querySelector('#txtProductionYear').label = Globalize.translate('LabelBirthYear');
|
||||
page.querySelector('#txtEndDate').label = Globalize.translate('LabelDeathDate');
|
||||
$('#fldPlaceOfBirth', page).show();
|
||||
} else {
|
||||
$('#lblPremiereDate', page).html(Globalize.translate('LabelReleaseDate'));
|
||||
$('#lblYear', page).html(Globalize.translate('LabelYear'));
|
||||
$('#lblEndDate', page).html(Globalize.translate('LabelEndDate'));
|
||||
page.querySelector('#txtPremiereDate').label = Globalize.translate('LabelReleaseDate');
|
||||
page.querySelector('#txtProductionYear').label = Globalize.translate('LabelYear');
|
||||
page.querySelector('#txtEndDate').label = Globalize.translate('LabelEndDate');
|
||||
$('#fldPlaceOfBirth', page).hide();
|
||||
}
|
||||
|
||||
|
|
|
@ -166,6 +166,42 @@
|
|||
}
|
||||
|
||||
LiveTvHelpers.renderOriginalAirDate($('.airDate', page), item);
|
||||
|
||||
if (item.Type == "Person" && item.PremiereDate) {
|
||||
|
||||
try {
|
||||
var birthday = parseISO8601Date(item.PremiereDate, { toLocal: true }).toDateString();
|
||||
|
||||
$('#itemBirthday', page).show().html(Globalize.translate('BirthDateValue').replace('{0}', birthday));
|
||||
}
|
||||
catch (err) {
|
||||
$('#itemBirthday', page).hide();
|
||||
}
|
||||
} else {
|
||||
$('#itemBirthday', page).hide();
|
||||
}
|
||||
|
||||
if (item.Type == "Person" && item.EndDate) {
|
||||
|
||||
try {
|
||||
var deathday = parseISO8601Date(item.EndDate, { toLocal: true }).toDateString();
|
||||
|
||||
$('#itemDeathDate', page).show().html(Globalize.translate('DeathDateValue').replace('{0}', deathday));
|
||||
}
|
||||
catch (err) {
|
||||
$('#itemBirthday', page).hide();
|
||||
}
|
||||
} else {
|
||||
}
|
||||
|
||||
if (item.Type == "Person" && item.ProductionLocations && item.ProductionLocations.length) {
|
||||
|
||||
var gmap = '<a class="textlink" target="_blank" href="https://maps.google.com/maps?q=' + item.ProductionLocations[0] + '">' + item.ProductionLocations[0] + '</a>';
|
||||
|
||||
$('#itemBirthLocation', page).show().html(Globalize.translate('BirthPlaceValue').replace('{0}', gmap)).trigger('create');
|
||||
} else {
|
||||
$('#itemBirthLocation', page).hide();
|
||||
}
|
||||
});
|
||||
|
||||
if (item.LocationType == "Offline") {
|
||||
|
|
|
@ -6,12 +6,14 @@
|
|||
|
||||
menuItems.push({
|
||||
name: Globalize.translate('OptionBackdropSlideshow'),
|
||||
id: 'backdrops'
|
||||
id: 'backdrops',
|
||||
ironIcon: 'video-library'
|
||||
});
|
||||
|
||||
menuItems.push({
|
||||
name: Globalize.translate('OptionPhotoSlideshow'),
|
||||
id: 'photos'
|
||||
id: 'photos',
|
||||
ironIcon: 'photo-library'
|
||||
});
|
||||
|
||||
require(['actionsheet'], function () {
|
||||
|
@ -176,7 +178,7 @@
|
|||
var keyframes = [
|
||||
{ opacity: '0', offset: 0 },
|
||||
{ opacity: '1', offset: 1 }];
|
||||
var timing = { duration: 1500, iterations: 1 };
|
||||
var timing = { duration: 1200, iterations: 1 };
|
||||
newCardImageContainer.animate(keyframes, timing).onfinish = onAnimationFinished;
|
||||
} else {
|
||||
onAnimationFinished();
|
||||
|
@ -216,7 +218,7 @@
|
|||
var keyframes = [
|
||||
{ opacity: '1', offset: 0 },
|
||||
{ opacity: '0', offset: 1 }];
|
||||
var timing = { duration: 400, iterations: iterations };
|
||||
var timing = { duration: 500, iterations: iterations };
|
||||
return elem.animate(keyframes, timing);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue