Fixed bug: locations where shown as 'undefined' if nominatim lookup times out.
This commit is contained in:
parent
f467b77f48
commit
9617cc5fa3
Notes:
subgit
2018-03-07 17:58:59 +01:00
r672 www/trunk
@ -109,8 +109,8 @@ function ajaxLoadEvents(stime, etime, id, target) {
|
||||
var location
|
||||
// get location, try this in order:
|
||||
// regional map name, given value, cached value, or nominatim lookup
|
||||
location = ( getLocation(lat, lng)[0] || $(this).find('description > text').text() );
|
||||
location = ( geolocationTable[id] || getGeolocation(id, lat, lng) );
|
||||
geolocationTable[id] ? null : getGeolocation(id, lat, lng); // do AJAX lookup if not cached, location will be updated later
|
||||
location = ( geolocationTable[id] || getLocation(lat, lng)[0] || $(this).find('description > text').text() );
|
||||
// create table row: Date, Time, Mag, Location
|
||||
if ( !eventTable[id] && $.inArray(type, config['event']['typeWhitelist'] )+1 && $.inArray(evaluationStatus, config['event']['evaluationBlacklist'])<0 && Number(mag)+0.05 >= config['event']['minMag'] ) {
|
||||
// general event info (1st line)
|
||||
|
Loading…
Reference in New Issue
Block a user