re
This commit is contained in:
parent
ee12014e8c
commit
fdcff1a6ac
|
|
@ -141,7 +141,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||||
|| new bootstrap.Collapse(target, { toggle: false });
|
|| new bootstrap.Collapse(target, { toggle: false });
|
||||||
|
|
||||||
// Toggle explicite : si ouvert => fermer, sinon => ouvrir
|
// Toggle explicite : si ouvert => fermer, sinon => ouvrir
|
||||||
if (target.classList.contains('show')) {
|
if (target.classList.contains('collapsing') || target.classList.contains('show')) {
|
||||||
console.log('Click', targetSel, '=> fermeture');
|
console.log('Click', targetSel, '=> fermeture');
|
||||||
instance.hide();
|
instance.hide();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user