Skip to content

Commit

Permalink
Fix non-functioning links when the item descriptions is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
blinry committed Jun 25, 2017
1 parent 556ce25 commit fa153e9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions js/app.js
Expand Up @@ -239,9 +239,13 @@ $(document).ready(function() {
var img = document.getElementById('image');
img.src = place.photo.value;
window.actualLatLng = {lat: place.lat.value, lon: place.lon.value};
window.locName = place.itemLabel.value;
window.locDescription = place.itemDescription.value;
window.locID = place.item.value;
window.locName = place.itemLabel.value;
if (place.itemDescription) {
window.locDescription = place.itemDescription.value;
} else {
window.locDescription = "(no description available)";
}
});
}
)
Expand Down

0 comments on commit fa153e9

Please sign in to comment.