Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 809 Rev 864
Line 30... Line 30...
30
	ajouterAutocompletion();
30
	ajouterAutocompletion();
31
	ajouterActionClicSurTexteRecherche(champs_ts);
31
	ajouterActionClicSurTexteRecherche(champs_ts);
32
	gererAffichageValeursParDefaut(champs_ts);
32
	gererAffichageValeursParDefaut(champs_ts);
33
	afficherValeurParDefaut(champs_ts);
33
	afficherValeurParDefaut(champs_ts);
34
	gererAccesFicheFlecheDroite();
34
	gererAccesFicheFlecheDroite();
-
 
35
	gererClicIllustrationsResultats()
35
});
36
});
Line 36... Line 37...
36
 
37
 
37
/**------------------- Fonctions de gestion de l'autocompletion ---------------------------------*/
38
/**------------------- Fonctions de gestion de l'autocompletion ---------------------------------*/
38
function ajouterAutocompletion(){
39
function ajouterAutocompletion(){
Line 347... Line 348...
347
		}
348
		}
Line 348... Line 349...
348
 
349
 
349
	}
350
	}
Line -... Line 351...
-
 
351
}
-
 
352
 
-
 
353
/**------------ Fonctions de gestion du zoom sur les images affichées dans les résultats de recherche ----------------------*/
-
 
354
function gererClicIllustrationsResultats() {
-
 
355
	$('.illustration_resultat_cel').click(function() {
-
 
356
		var url = $(this).attr('src')/*.replace('CS','XL')*/;
-
 
357
		var titre = $(this).parent().find('a.lien_fiche_eflore').text();
-
 
358
		ouvrirFenetreIllustrationResultat(url, titre, 400, 400);
-
 
359
	}); 
-
 
360
	
-
 
361
	$('.illustration_resultat_choro').click(function() {
-
 
362
		var url = $(this).attr('src').replace('108x101','432x404');
-
 
363
		var titre = 'Chorologie du taxon '+$(this).parent().find('a.lien_fiche_eflore').text();
-
 
364
		ouvrirFenetreIllustrationResultat(url, titre, 432, 404);
-
 
365
	}); 
-
 
366
	
-
 
367
	$('.illustration_resultat_coste').click(function() {
-
 
368
		var url = $(this).attr('src');
-
 
369
		var titre = 'Illustration de Coste du taxon '+$(this).parent().find('a.lien_fiche_eflore').text();
-
 
370
		ouvrirFenetreIllustrationResultat(url, titre, 400, 400);
-
 
371
	}); 
-
 
372
}
-
 
373
 
-
 
374
function ouvrirFenetreIllustrationResultat(url, titre, hauteur, largeur) {
-
 
375
	var fenetre = window.open('_blank', titre,'directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no, width='+(largeur+17)+', height='+(hauteur+17));
-
 
376
	var tmp = fenetre.document;
-
 
377
	tmp.write('<html><head><title>'+titre+'</title>');
-
 
378
	tmp.write('</head><body>');
-
 
379
	tmp.write('<p style="height='+hauteur+'px;text-align:center;line-height='+hauteur+'px;"><img id="image_agrandie" height="'+hauteur+'" width="'+largeur+'" style="vertical-align:middle;" src="'+url+'" /></p>');
-
 
380
	tmp.write('</body></html>');
-
 
381
	tmp.close();
350
}
382
}
351
 
383
 
352
/*
384
/*
353
 * jQuery UI Autocomplete HTML Extension
385
 * jQuery UI Autocomplete HTML Extension
354
 *
386
 *