Subversion Repositories Sites.obs-saisons.fr

Rev

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

Rev 39 Rev 47
Line 1... Line 1...
1
function initialiserCalendrierFormulaire() {
1
function initialiserCalendrierFormulaire() {
-
 
2
	
-
 
3
	anneeEnCours = $("#annee_en_cours").attr("value");
-
 
4
	
-
 
5
	if(typeof(anneeEnCours)=='undefined'){ 
-
 
6
		dateCourante = new Date(); 
-
 
7
		anneeEnCours = dateCourante.getFullYear(); 
-
 
8
	}
-
 
9
	
2
	$(".calendrier").each(function() {
10
	$(".calendrier").each(function() {
3
		$(this).find("input").datepicker({
11
		$(this).find("input").datepicker({
4
		disabled: true,
12
			disabled: true,
5
		altFormat: 'dd/mm/yyyy'
13
			altFormat: 'dd/mm/yyyy',
-
 
14
			minDate: '01/01/'+anneeEnCours,
-
 
15
			maxDate: '31/12/'+anneeEnCours
Line 6... Line 16...
6
		
16
		
7
		})
17
		});
8
	});
18
	});
Line 9... Line 19...
9
}
19
}
10
 
20