Subversion Repositories Sites.obs-saisons.fr

Rev

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

Rev 100 Rev 168
Line -... Line 1...
-
 
1
var urlBaseJrest = 'http://localhost/obs_saisons/applications/jrest/';
-
 
2
 
1
/** 
3
/** 
2
	************************************************************************************************
4
	************************************************************************************************
3
	************************************************************************************************
5
	************************************************************************************************
Line 4... Line 6...
4
	
6
	
Line 356... Line 358...
356
		return;
358
		return;
357
	}
359
	}
Line 358... Line 360...
358
	
360
	
Line 359... Line 361...
359
	cacherElementsRafraichissables();
361
	cacherElementsRafraichissables();
Line 360... Line 362...
360
	
362
	
361
	$.get('http://162.38.234.9/obs_saisons/applications/jrest/OdsCommune/informationsPourCoordonnees/?lat='+lat+'&lon='+lon, function(data) {	
363
	$.get(urlBaseJrest+'OdsCommune/informationsPourCoordonnees/?lat='+lat+'&lon='+lon, function(data) {	
Line 362... Line 364...
362
		
364
		
Line 378... Line 380...
378
	if(jQuery.trim(nom_commune) == '') {
380
	if(jQuery.trim(nom_commune) == '') {
379
		$('.conteneur_suggestions').hide();
381
		$('.conteneur_suggestions').hide();
380
		return;
382
		return;
381
	}
383
	}
Line 382... Line 384...
382
	
384
	
Line 383... Line 385...
383
	$.get('http://162.38.234.9/obs_saisons/applications/jrest/OdsCommune/informationsPourCommune/?commune='+nom_commune, function(data) {	
385
	$.get(urlBaseJrest+'OdsCommune/informationsPourCommune/?commune='+nom_commune, function(data) {	
384
		
386
		
385
		infos_localites = jQuery.parseJSON(data);
387
		infos_localites = jQuery.parseJSON(data);
386
		afficherListeAutoCompletion(infos_localites);		
388
		afficherListeAutoCompletion(infos_localites);		
Line 496... Line 498...
496
	infos_commune = liste_localite_en_cours[indice];
498
	infos_commune = liste_localite_en_cours[indice];
Line 497... Line 499...
497
	
499
	
498
	$('input#station_commune').val(infos_commune['commune']);
500
	$('input#station_commune').val(infos_commune['commune']);
499
	$('input#station_lat').val(infos_commune['lat']);
501
	$('input#station_lat').val(infos_commune['lat']);
-
 
502
	$('input#station_lon').val(infos_commune['lon']);
Line 500... Line 503...
500
	$('input#station_lon').val(infos_commune['lon']);
503
	$('input#station_code_insee').val(infos_commune['code_insee']);
Line 501... Line 504...
501
	
504
	
502
	verifierEtLocaliserCoordonnees();
505
	verifierEtLocaliserCoordonnees();