This commit is contained in:
armansansd 2023-07-03 11:04:24 +01:00
parent e3d2d6389a
commit b163e03047
2 changed files with 10 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@ -301,15 +301,19 @@ if($(".page-node-type-programme").length > 0 || $(".page-node-type-projet").leng
}) })
$('.views-element-container header').click(function(){ $('.views-element-container header').click(function(){
$(this).parent().find(".view-grouping").fadeToggle(); //$(this).parent().find(".view-grouping").fadeToggle();
console.log($(this).parent().find("h3"));
$(this).parent().find(".views-row:visible").fadeToggle(); if($(this).parent().find("h3").length > 0){
$(this).parent().find("h3").fadeToggle(); $(this).parent().find("h3").fadeToggle();
}else{
$(this).parent().find(".views-row").fadeToggle();
}
}); });
//page projet //page projet
$("#programme_toc-block_10 h3").click(function(){ $("#programme_toc-block_10 h3").click(function(){
console.log(this);
$(this).nextUntil("h3").fadeToggle(); $(this).nextUntil("h3").fadeToggle();
}); });