test for "Deutschland" in contryCode when doing geolocation lookup.
This commit is contained in:
parent
2d287ea304
commit
9333db3d29
@ -47,7 +47,7 @@ function getGeolocation(id, lat, lng) {
|
|||||||
var city = json.features[0].properties.city;
|
var city = json.features[0].properties.city;
|
||||||
var countryCode = json.features[0].properties.country;
|
var countryCode = json.features[0].properties.country;
|
||||||
geolocationTable[id] = city;
|
geolocationTable[id] = city;
|
||||||
( countryCode != "Germany" ) ? geolocationTable[id] = geolocationTable[id] + " ("+countryCode+")" : null;
|
( countryCode != "Germany" && countryCode != "Deutschland" ) ? geolocationTable[id] = geolocationTable[id] + " ("+countryCode+")" : null;
|
||||||
if ( city ) {
|
if ( city ) {
|
||||||
$("#eventstable a.toggle[eventid="+id+"]").text(geolocationTable[id]);
|
$("#eventstable a.toggle[eventid="+id+"]").text(geolocationTable[id]);
|
||||||
var sort = [[0,1],[1,1],[2,1]];
|
var sort = [[0,1],[1,1],[2,1]];
|
||||||
|
@ -47,7 +47,7 @@ function getGeolocation(id, lat, lng) {
|
|||||||
var city = json.features[0].properties.city;
|
var city = json.features[0].properties.city;
|
||||||
var countryCode = json.features[0].properties.country;
|
var countryCode = json.features[0].properties.country;
|
||||||
geolocationTable[id] = city;
|
geolocationTable[id] = city;
|
||||||
( countryCode != "Germany" ) ? geolocationTable[id] = geolocationTable[id] + " ("+countryCode+")" : null;
|
( countryCode != "Germany" && countryCode != "Deutschland" ) ? geolocationTable[id] = geolocationTable[id] + " ("+countryCode+")" : null;
|
||||||
if ( city ) {
|
if ( city ) {
|
||||||
$("#eventstable a.toggle[eventid="+id+"]").text(geolocationTable[id]);
|
$("#eventstable a.toggle[eventid="+id+"]").text(geolocationTable[id]);
|
||||||
var sort = [[0,1],[1,1],[2,1]];
|
var sort = [[0,1],[1,1],[2,1]];
|
||||||
|
Loading…
Reference in New Issue
Block a user