mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
pass requested fields to data layer
This commit is contained in:
parent
e97f59a691
commit
81788655e9
5 changed files with 8 additions and 34 deletions
|
@ -239,9 +239,9 @@
|
|||
}
|
||||
|
||||
var itemBirthLocation = page.querySelector('#itemBirthLocation');
|
||||
if (item.Type == "Person" && item.ProductionLocations && item.ProductionLocations.length) {
|
||||
if (item.Type == "Person" && item.PlaceOfBirth) {
|
||||
|
||||
var gmap = '<a class="textlink" target="_blank" href="https://maps.google.com/maps?q=' + item.ProductionLocations[0] + '">' + item.ProductionLocations[0] + '</a>';
|
||||
var gmap = '<a class="textlink" target="_blank" href="https://maps.google.com/maps?q=' + item.PlaceOfBirth + '">' + item.PlaceOfBirth + '</a>';
|
||||
|
||||
itemBirthLocation.classList.remove('hide');
|
||||
itemBirthLocation.innerHTML = Globalize.translate('BirthPlaceValue').replace('{0}', gmap);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue