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 |
});
|
542 |
});
|
548 |
});
|
Line 543... |
Line 549... |
543 |
|
549 |
|
544 |
// Affiche les n images ayant le plus de votes, pour l'organe $tag
|
550 |
// Affiche les n images ayant le plus de votes, pour l'organe $tag
|
545 |
function afficherOngletOrgane(e, tag) {
|
551 |
function afficherOngletOrgane(e, tag) {
|
Line 583... |
Line 589... |
583 |
var grandeImage = $('#grande-image-organe').find('img'),
|
589 |
var grandeImage = $('#grande-image-organe').find('img'),
|
584 |
source = $(this).find('img').attr('src');
|
590 |
source = $(this).find('img').attr('src');
|
585 |
source = source.replace('CRX2S', 'L'); // @FIXME cracra
|
591 |
source = source.replace('CRX2S', 'L'); // @FIXME cracra
|
586 |
// chargement image et lien popup
|
592 |
// chargement image et lien popup
|
587 |
grandeImage.attr('src', source);
|
593 |
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'));
|
594 |
grandeImage.parent().attr('href',urlPopup+'?module=popup-illustrations&action=fiche&referentiel=bdtfx&id=' + $(this).data('id-image'));
|
589 |
// métadonnées
|
595 |
// métadonnées
|
590 |
var metadonnees = ['id-image', 'titre', 'description', 'localisation', 'auteur'],
|
596 |
var metadonnees = ['id-image', 'titre', 'description', 'localisation', 'auteur'],
|
591 |
clef;
|
597 |
clef;
|
592 |
for (var i = 0; i < metadonnees.length; i++) {
|
598 |
for (var i = 0; i < metadonnees.length; i++) {
|
593 |
clef = metadonnees[i];
|
599 |
clef = metadonnees[i];
|