Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 3988 → Rev 3989

/trunk/widget/modules/photo/squelettes/js/WidgetPhotoPopup.js
42,6 → 42,7
$( window ).on( 'resize', lthis.redimentionnerModaleCarousel.bind( lthis ) );
this.initEvtsFonctionsPhoto();
this.initEvtsRetourGalerieResponsive();
this.initEvtsToggleVolet();
};
 
WidgetPhotoPopup.prototype.mettreAJourPopup = function() {
159,6 → 160,7
if ( window.matchMedia( '(max-width: 991px)' ).matches ) {
$( '#info-img-galerie' ).addClass( 'hidden' );
$( '#volet, #retour-galerie' ).removeClass( 'hidden' );
$( '#hide-metas-div' ).removeClass( 'hidden' );
}
});
};
171,6 → 173,7
if ( window.matchMedia( '(max-width: 991px)' ).matches ) {
$( '#volet' ).addClass( 'hidden' );
$( '.bouton-fct.actif' ).removeClass( 'actif' );
$( '#hide-metas-div' ).addClass( 'hidden' );
}
});
};
1031,3 → 1034,21
// Met à jour l'attribut 'src' de l'image avec la nouvelle URL
$image.attr('src', newSrc);
}
 
WidgetPhotoPopup.prototype.initEvtsToggleVolet = function (){
lthis = this;
 
$('#hide-metas-div').off('click').on('click', function () {
$('#hide-metas-div').toggleClass('volet-hidden')
$('#hide-metas i').toggleClass('fa-angle-double-left')
$('#hide-metas i').toggleClass('fa-angle-double-right')
if ($('#hide-metas-div').hasClass('volet-hidden')){
$('#hide-metas').attr('title', "Afficher le volet d'information")
} else {
$('#hide-metas').attr('title', "Cacher le volet d'information")
}
 
$( '#volet, #retour-galerie' ).toggleClass( 'hidden' );
$( '#boutons-footer, #info-img-galerie' ).toggleClass( 'col-lg-8' );
})
}