diff --git a/docs/js-support.md b/docs/js-support.md index 5f223dc..e8d0ba5 100644 --- a/docs/js-support.md +++ b/docs/js-support.md @@ -188,8 +188,10 @@ var id = 'toggle-' + t; var a = document.getElementById(id); if ( a.hasAttribute('open') == false ) { for (i=0; i < d.length; i++) { - d[i].setAttribute('open',''); - a.setAttribute('open',''); + if ( d[i].classList.contains('dep') == false ) { + d[i].setAttribute('open',''); + a.setAttribute('open',''); + } }} else if ( a.hasAttribute('open') == true ) { for (i=0; i < d.length; i++) { diff --git a/website/properties/script b/website/properties/script index c0c6417..7bc662c 100644 --- a/website/properties/script +++ b/website/properties/script @@ -19,8 +19,10 @@ var id = 'toggle-' + t; var a = document.getElementById(id); if ( a.hasAttribute('open') == false ) { for (i=0; i < d.length; i++) { - d[i].setAttribute('open',''); - a.setAttribute('open',''); + if ( d[i].querySelector('.dep') == null ) { + d[i].setAttribute('open',''); + a.setAttribute('open',''); + } }} else if ( a.hasAttribute('open') == true ) { for (i=0; i < d.length; i++) {