Subversion Repositories Sites.obs-saisons.fr

Rev

Rev 188 | Rev 207 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 188 Rev 196
Line 379... Line 379...
379
	$.get(urlBaseJrest+'OdsCommune/informationsPourCoordonnees/?lat='+lat+'&lon='+lon, function(data) {	
379
	$.get(urlBaseJrest+'OdsCommune/informationsPourCoordonnees/?lat='+lat+'&lon='+lon, function(data) {	
Line 380... Line 380...
380
		
380
		
381
		infos_localites = jQuery.parseJSON(data);
381
		infos_localites = jQuery.parseJSON(data);
Line 382... Line 382...
382
		$('#station_alt').val(infos_localites.alt);
382
		$('#station_alt').val(infos_localites.alt);
383
		
383
		
-
 
384
		if(infos_localites.commune != null && infos_localites.commune != '') {
384
		if(jQuery.trim($('#station_commune').val()) == '') { 
385
		  $('#station_commune').val(infos_localites.commune);
Line 385... Line 386...
385
			$('#station_commune').val(infos_localites.commune);
386
		  $('#station_code_insee').val(infos_localites.code_insee);
Line 386... Line 387...
386
		}
387
		}