Subversion Repositories Sites.obs-saisons.fr

Rev

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

Rev 196 Rev 207
Line 1... Line 1...
1
var urlBaseJrest = 'http://localhost/obs_saisons/applications/jrest/';
1
var urlBaseJrest = 'http://162.38.234.9/obs_saisons/applications/jrest/';
-
 
2
 
-
 
3
function getUrlBaseJrest() {
-
 
4
	
-
 
5
	url_page_courante = document.URL;
-
 
6
	
-
 
7
	if(url_page_courante.indexOf('http://www.') != -1) {
-
 
8
		return urlBaseJrest;
-
 
9
	} else {
-
 
10
		return urlBaseJrest.replace('http://www.','http://');
-
 
11
	}
-
 
12
}
Line 2... Line 13...
2
 
13
 
3
/** 
14
/** 
4
	************************************************************************************************
15
	************************************************************************************************
Line 13... Line 24...
13
 
24
 
Line 14... Line 25...
14
	$('.pliage h4').addClass('lien_pliage');
25
	$('.pliage h4').addClass('lien_pliage');
15
 
26
 
16
	$('.pliage ul').hide();
27
	$('.pliage ul').hide();
17
	$('.pliage > ul:first-child').hide();
28
	$('.pliage > ul:first-child').hide();
18
	
29
 
Line 19... Line 30...
19
	$('.1er_element_date ul').show();
30
	$('.1er_element_date ul').show();
Line 28... Line 39...
28
 
39
 
29
$('.pliage').ready(function() {
40
$('.pliage').ready(function() {
30
	initialiserElementsPliables();
41
	initialiserElementsPliables();
Line 31... Line -...
31
});
-
 
32
 
-
 
33
/** 
-
 
34
************************************************************************************************
-
 
35
************************************************************************************************
-
 
36
 
-
 
37
   Fonctions pour la fiche individu
-
 
38
 
-
 
39
************************************************************************************************
-
 
40
************************************************************************************************
-
 
41
**/  
-
 
42
 
-
 
43
observations = $('.observations_individu');
-
 
44
window.alert(dump(observations));
-
 
45
observations[0].ready(function() {
-
 
46
	window.alert(dump(observations));
-
 
47
	$(this).nextAll('ul').show();
-
 
Line 48... Line 42...
48
});
42
});
49
 
43
 
50
 
44
 
Line 98... Line 92...
98
$('#form_saisie_espece').ready(function() {
92
$('#form_saisie_espece').ready(function() {
99
	agrandirZoneCLicBoutonsRadios();
93
	agrandirZoneCLicBoutonsRadios();
100
});
94
});
Line -... Line 95...
-
 
95
 
-
 
96
 
101
 
97
 
102
 
98
 
103
/** 
99
/** 
Line 104... Line 100...
104
	************************************************************************************************
100
	************************************************************************************************
Line 373... Line 369...
373
	if(isNaN(lat) || lat.length <= 0 || isNaN(lon) || lon.length <= 0) {
369
	if(isNaN(lat) || lat.length <= 0 || isNaN(lon) || lon.length <= 0) {
374
		return;
370
		return;
375
	}
371
	}
Line 376... Line 372...
376
	
372
	
377
	cacherElementsRafraichissables();
373
	cacherElementsRafraichissables();
378
	
374
 
Line 379... Line 375...
379
	$.get(urlBaseJrest+'OdsCommune/informationsPourCoordonnees/?lat='+lat+'&lon='+lon, function(data) {	
375
	$.get(urlBaseJrest+'OdsCommune/informationsPourCoordonnees/?lat='+lat+'&lon='+lon, function(data) {	
380
		
376