Skip to content
Snippets Groups Projects
Commit e4d1d331 authored by gloas's avatar gloas
Browse files

Resultat de recherche, mode facette cochables: Modification du comportement...

Resultat de recherche, mode facette cochables: Modification du comportement des cliks sur les a et checkbox
parent 2b9e0377
Branches
Tags
No related merge requests found
......@@ -410,3 +410,17 @@ var scrollToSelectedNoticeInResult = function() {
$('html, body').animate({scrollTop:offset.top}, 500, 'easeInSine');
}
function modeFacetteCochable() {
$('.filtre_recherche li.facette_cochable').each(function() {
$(this).find('a').click(function(event) {
event.preventDefault();
$(this).siblings('input').click();
});
$(this).find('input').click(function(){
window.location = $(this).attr('checked') ? $(this).next().attr('href') : $(this).siblings('.remove_facette').attr('href');
});
});
}
$(modeFacetteCochable);
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment