mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-16 10:28:18 -07:00
Remove external link for 'Birth place'
This commit is contained in:
parent
6a82956cf4
commit
b09fd1b099
@ -649,7 +649,10 @@ function reloadFromItem(instance, page, params, item, user) {
|
||||
const itemBirthLocation = page.querySelector('#itemBirthLocation');
|
||||
|
||||
if (item.Type == 'Person' && item.ProductionLocations && item.ProductionLocations.length) {
|
||||
const gmap = '<a is="emby-linkbutton" class="button-link textlink" target="_blank" href="https://maps.google.com/maps?q=' + item.ProductionLocations[0] + '">' + item.ProductionLocations[0] + '</a>';
|
||||
let gmap = item.ProductionLocations[0];
|
||||
if (!layoutManager.tv) {
|
||||
gmap = `<a is="emby-linkbutton" class="button-link textlink" target="_blank" href="https://maps.google.com/maps?q=${gmap}">${gmap}</a>`;
|
||||
}
|
||||
itemBirthLocation.classList.remove('hide');
|
||||
itemBirthLocation.innerHTML = globalize.translate('BirthPlaceValue', gmap);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user