Subversion Repositories eFlore/Applications.cel

Compare Revisions

Regard whitespace Rev 3961 → Rev 3960

/trunk/widget/modules/photo/squelettes/js/WidgetPhoto.js
46,7 → 46,6
});
 
lthis.rechercher();
lthis.affichageEFlore();
};
 
WidgetPhoto.prototype.rechercher = function(){
157,37 → 156,3
// Rediriger vers la nouvelle URL
window.location.replace(url);
};
 
WidgetPhoto.prototype.affichageEFlore = function (){
const lthis = this;
let tagToDisplay = 'fleur';
 
// Remove 'active' class from all list items
$(".icone-organe-list").removeClass("active");
 
// Add 'active' class to the clicked list item
$("#eflore-fleur").parent(".icone-organe-list").addClass("active");
 
lthis.displayImages(tagToDisplay);
 
$(".lien-images-organes").click(function(event){
event.preventDefault();
 
// Remove 'active' class from all list items
$(".icone-organe-list").removeClass("active");
 
// Add 'active' class to the clicked list item
$(this).parent(".icone-organe-list").addClass("active");
 
// Get the parameters 'value' and 'filterName' from the clicked link
tagToDisplay = $(this).attr("title");
 
lthis.displayImages(tagToDisplay);
})
}
 
WidgetPhoto.prototype.displayImages = function (tagToDisplay){
$(".cel-photo").hide();
$("."+tagToDisplay).show();
$(".non_eflore").show();
}