From 9333db3d29b92d25fdd1aacb03b71370e17b03a8 Mon Sep 17 00:00:00 2001 From: "Kasper D. Fischer" Date: Wed, 23 Feb 2022 16:53:37 +0100 Subject: [PATCH] test for "Deutschland" in contryCode when doing geolocation lookup. --- www/events.js | 2 +- www/events.js.en | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/www/events.js b/www/events.js index 7c11138..5902b45 100644 --- a/www/events.js +++ b/www/events.js @@ -47,7 +47,7 @@ function getGeolocation(id, lat, lng) { var city = json.features[0].properties.city; var countryCode = json.features[0].properties.country; geolocationTable[id] = city; - ( countryCode != "Germany" ) ? geolocationTable[id] = geolocationTable[id] + " ("+countryCode+")" : null; + ( countryCode != "Germany" && countryCode != "Deutschland" ) ? geolocationTable[id] = geolocationTable[id] + " ("+countryCode+")" : null; if ( city ) { $("#eventstable a.toggle[eventid="+id+"]").text(geolocationTable[id]); var sort = [[0,1],[1,1],[2,1]]; diff --git a/www/events.js.en b/www/events.js.en index 67858e8..51506cc 100644 --- a/www/events.js.en +++ b/www/events.js.en @@ -47,7 +47,7 @@ function getGeolocation(id, lat, lng) { var city = json.features[0].properties.city; var countryCode = json.features[0].properties.country; geolocationTable[id] = city; - ( countryCode != "Germany" ) ? geolocationTable[id] = geolocationTable[id] + " ("+countryCode+")" : null; + ( countryCode != "Germany" && countryCode != "Deutschland" ) ? geolocationTable[id] = geolocationTable[id] + " ("+countryCode+")" : null; if ( city ) { $("#eventstable a.toggle[eventid="+id+"]").text(geolocationTable[id]); var sort = [[0,1],[1,1],[2,1]];