Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 917 Rev 922
Line 377... Line 377...
377
 
377
 
378
/**------------ Fonctions de gestion du zoom sur les images affichées dans les résultats de recherche ----------------------*/
378
/**------------ Fonctions de gestion du zoom sur les images affichées dans les résultats de recherche ----------------------*/
379
function gererClicIllustrationsResultats() {
379
function gererClicIllustrationsResultats() {
380
	$('.illustration_resultat_cel').click(function() {
380
	$('.illustration_resultat_cel').click(function() {
381
		var url = $(this).attr('src');
-
 
382
		var url = URL_BASE_POPUP+"?module=popup-galerie&action=fiche&num_nom="+$(this).attr('title');
381
		var url = $(this).attr('src');
-
 
382
		var titre = trouverNomTaxon($(this));
383
		var titre = trouverNomTaxon($(this));
383
		var url = URL_BASE_POPUP+"?module=popup-galerie&action=fiche&num_nom="+$(this).attr('title')+"&titre="+titre;
384
		window.open(url, titre, 'directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no, width='+(400)+', height='+(375));
384
		window.open(url, titre, 'directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no, width='+(700)+', height='+(650));
Line 385... Line 385...
385
	}); 
385
	}); 
386
	
386
	
387
	$('.illustration_resultat_choro').click(function() {
387
	$('.illustration_resultat_choro').click(function() {
Line 400... Line 400...
400
function trouverNomTaxon(objet) {
400
function trouverNomTaxon(objet) {
401
	nom = "";
401
	nom = "";
402
	if(nomVernaculaireEstDemande()) {
402
	if(nomVernaculaireEstDemande()) {
403
		nom = objet.parent().parent().find('a.lien_fiche_eflore').text();
403
		nom = objet.parent().parent().find('a.lien_fiche_eflore').text();
404
	} else {
404
	} else {
405
		nom = objet.parent().find('a.lien_fiche_eflore').text();
405
		nom = objet.parent().find('.nom-sci a.lien_fiche_eflore').text();
406
	}
406
	}
407
	return nom;
407
	return nom;
408
}
408
}
Line 409... Line 409...
409
 
409