Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 1342 Rev 1414
Line 114... Line 114...
114
		}
114
		}
Line 115... Line 115...
115
	
115
	
116
		var titre = obsNbreFormate+' observation';
116
		var titre = obsNbreFormate+' observation';
Line -... Line 117...
-
 
117
		titre += (obsNbre > 1) ? 's' : '' ;
-
 
118
		
-
 
119
		titre += ' sur '+(stationNbre+ communeNbre)+' station';
117
		titre += (obsNbre > 1) ? 's' : '' ;
120
		titre += (stationNbre > 1) ? 's' : '' ;
118
		
121
		
119
		if (nt == '*') {
122
		if (nt == '*') {
120
			titre += ' de '+plteNbreFormate+' plante';
123
			titre += ' parmi '+plteNbreFormate+' plante';
121
			titre += (plteNbre > 1) ? 's' : '' ;
124
			titre += (plteNbre > 1) ? 's' : '' ;
122
		} else {
125
		} else {
123
			if (taxonsCarte[0]) {
126
			if (taxonsCarte[0]) {
124
				var taxon = taxonsCarte[0];
127
				var taxon = taxonsCarte[0];
125
				titre += ' pour '+taxon.nom;
128
				titre += ' pour '+taxon.nom;
Line 126... Line -...
126
			}
-
 
127
		}
-
 
128
		
-
 
129
		titre += ' sur '+communeNbreFormate+' commune';
-
 
130
		titre += (communeNbre > 1) ? 's' : '' ;
-
 
131
		
-
 
132
		titre += ' et '+stationNbre+' station';
129
			}
133
		titre += (stationNbre > 1) ? 's' : '' ;
130
		}
134
		
131
		
Line 135... Line 132...
135
		$('#carte-titre-infos').text(titre);
132
		$('#carte-titre-infos').text(titre);
Line 589... Line 586...
589
   	$("#obs-vue-"+pagineur.format).css('display', 'block');
586
   	$("#obs-vue-"+pagineur.format).css('display', 'block');
590
   	$(".obs-conteneur").css('counter-reset', 'item '+pagineur.depart);
587
   	$(".obs-conteneur").css('counter-reset', 'item '+pagineur.depart);
591
	$("#tpl-obs-"+pagineur.format).tmpl(obsPage).appendTo("#obs-"+pagineur.format+"-lignes");
588
	$("#tpl-obs-"+pagineur.format).tmpl(obsPage).appendTo("#obs-"+pagineur.format+"-lignes");
Line 592... Line 589...
592
	
589
	
593
	// Actualisation de Fancybox
590
	// Actualisation de Fancybox
594
	ajouterFomulaireContact("a.contact");
591
	ajouterFormulaireContact("a.contact");
595
	if (pagineur.format == 'liste') {
592
	if (pagineur.format == 'liste') {
596
		ajouterGaleriePhoto("a.cel-img");
593
		ajouterGaleriePhoto("a.cel-img");
597
	}
594
	}
Line 711... Line 708...
711
		}
708
		}
712
		return false;
709
		return false;
713
	});
710
	});
714
}
711
}
Line 715... Line 712...
715
 
712
 
716
function ajouterFomulaireContact(element) {
713
function ajouterFormulaireContact(element) {
717
	$(element).fancybox({
714
	$(element).fancybox({
718
		transitionIn:'elastic',
715
		transitionIn:'elastic',
719
		transitionOut:'elastic',
716
		transitionOut:'elastic',
720
		speedIn	:600, 
717
		speedIn	:600,