mirror of
https://github.com/overte-org/overte.git
synced 2025-04-06 00:52:37 +02:00
Merge pull request #1304 from AleziaKurdis/placesAppDeadImagesManagement
Places App: Addressing ugly image "broken link" in Place Details
This commit is contained in:
commit
33b288a37e
1 changed files with 9 additions and 4 deletions
|
@ -107,7 +107,7 @@
|
|||
<div id="placeDetail" class="overlay">
|
||||
<a href="javascript:void(0)" class="closebtn" onclick="closeDetail();">×</a>
|
||||
<div class="overlay-content">
|
||||
<img id="placeDetail-image" onclick="closeDetail();" draggable="false">
|
||||
<div id="placeDetail-image" onclick="closeDetail();" draggable="false"></div>
|
||||
<div id="placeDetail-placeName"></div>
|
||||
<table width='100%'>
|
||||
<tr valign='top'>
|
||||
|
@ -775,12 +775,17 @@
|
|||
}
|
||||
}
|
||||
|
||||
document.getElementById("placeDetail-image").src = "";
|
||||
var pictureUrl = "";
|
||||
if (placeDetail.thumbnail === "") {
|
||||
document.getElementById("placeDetail-image").src = "icons/placeholder_" + placeDetail.metaverseRegion + ".jpg";
|
||||
pictureUrl = "icons/placeholder_" + placeDetail.metaverseRegion + ".jpg";
|
||||
} else {
|
||||
document.getElementById("placeDetail-image").src = placeDetail.thumbnail;
|
||||
pictureUrl = placeDetail.thumbnail;
|
||||
}
|
||||
document.getElementById("placeDetail-image").style.backgroundImage = "url(" + pictureUrl + ")";
|
||||
document.getElementById("placeDetail-image").style.backgroundRepeat = "no-repeat";
|
||||
document.getElementById("placeDetail-image").style.backgroundPosition = "center center";
|
||||
document.getElementById("placeDetail-image").style.backgroundSize = "cover";
|
||||
|
||||
document.getElementById("placeDetail-placeName").innerHTML = placeDetail.name;
|
||||
document.getElementById("placeDetail-managers").innerHTML = "By <br> " + placeDetail.managers;
|
||||
document.getElementById("placeDetail-description").innerHTML = placeDetail.description;
|
||||
|
|
Loading…
Reference in a new issue