Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 3960 → Rev 3961

/trunk/widget/modules/photo/squelettes/js/WidgetPhoto.js
46,6 → 46,7
});
 
lthis.rechercher();
lthis.affichageEFlore();
};
 
WidgetPhoto.prototype.rechercher = function(){
156,3 → 157,37
// 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();
}