mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Update index.js
This commit is contained in:
parent
99d584b21b
commit
fc011c09e4
1 changed files with 2 additions and 2 deletions
|
@ -697,9 +697,9 @@ function reloadFromItem(instance, page, params, item, user) {
|
||||||
const itemBirthLocation = page.querySelector('#itemBirthLocation');
|
const itemBirthLocation = page.querySelector('#itemBirthLocation');
|
||||||
|
|
||||||
if (item.Type == 'Person' && item.ProductionLocations && item.ProductionLocations.length) {
|
if (item.Type == 'Person' && item.ProductionLocations && item.ProductionLocations.length) {
|
||||||
const location = item.ProductionLocations[0];
|
let location = item.ProductionLocations[0];
|
||||||
if (!layoutManager.tv && appHost.supports('externallinks')) {
|
if (!layoutManager.tv && appHost.supports('externallinks')) {
|
||||||
gmap = `<a is="emby-linkbutton" class="button-link textlink" target="_blank" href="https://www.openstreetmap.org/search?query=${encodeURIComponent(location)}">${location}</a>`;
|
location = `<a is="emby-linkbutton" class="button-link textlink" target="_blank" href="https://www.openstreetmap.org/search?query=${encodeURIComponent(location)}">${location}</a>`;
|
||||||
}
|
}
|
||||||
itemBirthLocation.classList.remove('hide');
|
itemBirthLocation.classList.remove('hide');
|
||||||
itemBirthLocation.innerHTML = globalize.translate('BirthPlaceValue', location);
|
itemBirthLocation.innerHTML = globalize.translate('BirthPlaceValue', location);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue