Added missing call of getLocation if getGeolocation fails.
This commit is contained in:
		
							parent
							
								
									3de24436a0
								
							
						
					
					
						commit
						55a6c166b6
					
				
				
				Notes:
				
					subgit
				
				2018-03-07 17:58:51 +01:00 
			
			r630 www/trunk
| @ -87,12 +87,9 @@ function ajaxLoadEvents(stime, etime) { | |||||||
| 				var location | 				var location | ||||||
| 				// try to use location with reverse geolocation lookup (nominatim), check cache first
 | 				// try to use location with reverse geolocation lookup (nominatim), check cache first
 | ||||||
| 				// use getLocation if it fails or description -> text if it also fails
 | 				// use getLocation if it fails or description -> text if it also fails
 | ||||||
| 				if ( geolocationTable[id] ) { |                 ( location = geolocationTable[id] ) ? null : location = getGeolocation(id, lat, lng); | ||||||
| 					location = geolocationTable[id]; |                 ( location ) ? null : location = getLocation(lat, lng)[0]; | ||||||
| 				} else { |                 ( location ) ? null : $(this).find('description > text').text(); | ||||||
| 					location = getGeolocation(id, lat, lng); |  | ||||||
| 					( location ) ? null : location = $(this).find('description > text').text(); |  | ||||||
| 				}; |  | ||||||
| 				// create table row: Date, Time, Mag, Location
 | 				// 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'] ) { | 				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)
 | 					// general event info (1st line)
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user