Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 1285 Rev 1300
Line 537... Line 537...
537
	$('a.lien-images-organes.fourni').live('click', afficherOngletOrgane);
537
	$('a.lien-images-organes.fourni').live('click', afficherOngletOrgane);
538
	$('a.lien-grande-image-organe').live('click', afficherGrandeImageOrgane);
538
	$('a.lien-grande-image-organe').live('click', afficherGrandeImageOrgane);
539
	// pour que la galerie soit ouverte par défaut sur le premier organe non vide
539
	// pour que la galerie soit ouverte par défaut sur le premier organe non vide
540
	var premier = $('a.lien-images-organes.fourni').first().data('tag');
540
	var premier = $('a.lien-images-organes.fourni').first().data('tag');
541
	afficherOngletOrgane(null, premier);
541
	afficherOngletOrgane(null, premier);
-
 
542
	
-
 
543
	$("a.lien_telechargement_image").fancybox({
-
 
544
		"autoDimensions" : false,
-
 
545
		"width" : 800,
-
 
546
		"height" : 405,
-
 
547
		"overlayOpacity" : "1",
-
 
548
		"titleShow" : false
-
 
549
	});
542
});
550
});
Line 543... Line 551...
543
 
551
 
544
// Affiche les n images ayant le plus de votes, pour l'organe $tag
552
// Affiche les n images ayant le plus de votes, pour l'organe $tag
545
function afficherOngletOrgane(e, tag) {
553
function afficherOngletOrgane(e, tag) {
Line 583... Line 591...
583
	var grandeImage = $('#grande-image-organe').find('img'),
591
	var grandeImage = $('#grande-image-organe').find('img'),
584
		source = $(this).find('img').attr('src');
592
		source = $(this).find('img').attr('src');
585
	source = source.replace('CRX2S', 'L'); // @FIXME cracra
593
	source = source.replace('CRX2S', 'L'); // @FIXME cracra
586
	// chargement image et lien popup
594
	// chargement image et lien popup
587
	grandeImage.attr('src', source);
595
	grandeImage.attr('src', source);
588
	grandeImage.parent().attr('href','/eflore/consultation/popup.php?module=popup-illustrations&action=fiche&referentiel=bdtfx&id=' + $(this).data('id-image'));
596
	grandeImage.parent().attr('href',urlPopup+'?module=popup-illustrations&action=fiche&referentiel=bdtfx&id=' + $(this).data('id-image'));
589
	// métadonnées
597
	// métadonnées
590
	var metadonnees = ['id-image', 'titre', 'description', 'localisation', 'auteur'],
598
	var metadonnees = ['id-image', 'titre', 'description', 'localisation', 'auteur'],
591
		clef;
599
		clef;
592
	for (var i = 0; i < metadonnees.length; i++) {
600
	for (var i = 0; i < metadonnees.length; i++) {
593
		clef = metadonnees[i];
601
		clef = metadonnees[i];