Liste des avis
$(‘.avis_lien_afficher_reponses’).click(function()
{
$(this).parent().children(‘.avis_lien_masquer_reponses’).show();
$(this).closest(‘td’).children(‘.avis_reponse:not(.already_displayed)’).show();
$(this).hide();
if (typeof(redimfond) == ‘function’)
redimfond();
});
$(‘.avis_lien_masquer_reponses’).hide().click(function()
{
$(this).parent().children(‘.avis_lien_afficher_reponses’).show();
$(this).closest(‘td’).children(‘.avis_reponse:not(.already_displayed)’).hide();
$(this).hide();
if (typeof(redimfond) == ‘function’)
redimfond();
});
$(‘.pagination li’).click(function()
{
$iPage = parseInt($(this).children(‘a’).data(‘page’));
gestion_pagination_commentaire($iPage);
});
$(document).ready(function()
{
$(‘.fa_commentaires’).on(‘click’, ‘.avis_photos img’, function()
{
var oLightboxComment = new Modal(‘#lightbox-comment-photo’);
var oDivPhotos = $(this).closest(‘.avis_photos’).clone();
oDivPhotos.addClass(‘owl-carousel’);
oDivPhotos.find(‘img[data-large]’).each(function()
{
$(this).attr(‘src’, $(this).attr(‘data-large’));
});
oLightboxComment.setContent(oDivPhotos);
oLightboxComment.open();
oLightboxComment.sSelector.find(‘.avis_photos’).owlCarousel({
nav: true,
navText: [
‘‘,
‘‘,
],
navClass: [
‘owl-prev’,
‘owl-next’
],
loop: false,
responsiveClass: true,
dots: false,
margin: 25,
stagePadding: 10,
items: 1
});
$(oLightboxComment.sSelector).css(‘display’, ‘flex’);
if ($(this).attr(‘data-index’) > 0)
oLightboxComment.sSelector.find(‘.avis_photos’).trigger(‘to.owl.carousel’, $(this).attr(‘data-index’) + 1);
});
});









Avis
Il n’y a pas encore d’avis.