Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 1414 Rev 1430
Line 116... Line 116...
116
		var titre = obsNbreFormate+' observation';
116
		var titre = obsNbreFormate+' observation';
117
		titre += (obsNbre > 1) ? 's' : '' ;
117
		titre += (obsNbre > 1) ? 's' : '' ;
Line 118... Line 118...
118
		
118
		
119
		titre += ' sur '+(stationNbre+ communeNbre)+' station';
119
		titre += ' sur '+(stationNbre+ communeNbre)+' station';
120
		titre += (stationNbre > 1) ? 's' : '' ;
120
		titre += (stationNbre > 1) ? 's' : '' ;
121
		
121
 
122
		if (nt == '*') {
122
		if (nt == '*') {
123
			titre += ' parmi '+plteNbreFormate+' plante';
123
			titre += ' parmi '+plteNbreFormate+' plante';
124
			titre += (plteNbre > 1) ? 's' : '' ;
124
			titre += (plteNbre > 1) ? 's' : '' ;
-
 
125
		} else {
-
 
126
			if($('.taxon-actif .taxon').text() != '') {
-
 
127
				var element = $('.taxon-actif .taxon').clone();
-
 
128
				element.children().remove();
-
 
129
		        var taxon = element.text();
-
 
130
				titre += ' pour '+taxon;
125
		} else {
131
			} else {
126
			if (taxonsCarte[0]) {
132
				if (taxonsCarte[0]) {
127
				var taxon = taxonsCarte[0];
133
					var taxon = taxonsCarte[0];
-
 
134
					titre += ' pour '+taxon.nom;
128
				titre += ' pour '+taxon.nom;
135
				}
129
			}
136
			}
Line 130... Line 137...
130
		}
137
		}
131
		
138
		
Line 857... Line 864...
857
	$('#panneau-lateral').height($(window).height() - 35);
864
	$('#panneau-lateral').height($(window).height() - 35);
Line 858... Line 865...
858
	
865
	
859
	if (nt == '*') {
866
	if (nt == '*') {
860
		$('#pl-ouverture').bind('click', afficherPanneauLateral);
867
		$('#pl-ouverture').bind('click', afficherPanneauLateral);
-
 
868
		$('#pl-fermeture').bind('click', cacherPanneauLateral);
-
 
869
	} else {
-
 
870
		$('#panneau-lateral').width(0);
861
		$('#pl-fermeture').bind('click', cacherPanneauLateral);
871
		$('#carte').width('100%');
862
	}
872
	}
863
	chargerTaxons(0, 0);
873
	chargerTaxons(0, 0);
Line 864... Line 874...
864
}
874
}