nettoyage

This commit is contained in:
chankalan 2021-01-28 10:24:34 +01:00
parent c9ab5a1b2a
commit 7be005b3ac
1 changed files with 3 additions and 2 deletions

View File

@ -5,10 +5,11 @@ $(function() {
$('.sommaire_titre').on('click', function(){
$(this).toggleClass('on').siblings('ul').toggle().toggleClass('ouvert');
});
// si sommaire masque, alors il faut l'ouvrir en venant d'une ancre
$('.sommaire-back').on('click', function(){
var hash = "#sommaire-titre";
// var hash = "#sommaire-titre";
$('.sommaire_titre:not(.on)').toggleClass('on').siblings('ul:not(.ouvert)').toggle().addClass('ouvert');
window.location.hash = hash;
// window.location.hash = hash;
// return false;
});