From 9dd53b4958a571afa6567ebfc428aaa8cd21c495 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Sun, 14 Mar 2021 03:34:19 +0100 Subject: [PATCH] don't show "view on planespotters" when using planespotter thumbnails --- html/index.html | 2 +- html/script.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/html/index.html b/html/index.html index fa4dfab..cc9cd62 100644 --- a/html/index.html +++ b/html/index.html @@ -189,7 +189,7 @@ - +
diff --git a/html/script.js b/html/script.js index 8d33d76..df7ca2c 100644 --- a/html/script.js +++ b/html/script.js @@ -1803,6 +1803,11 @@ function initMap() { } else { $('#photo_container').addClass('hidden'); } + if (showPictures && planespottersAPI && !flightawareLinks) { + $('#photoLinkRow').addClass('hidden'); + } else { + $('#photoLinkRow').removeClass('hidden'); + } refreshSelected(); } });