We planned to upgrade GitLab and Mattermost to the latest version this Friday morning (early). You may experience some downtime!

Verified Commit bef6dc42 authored by Camil Staps's avatar Camil Staps 🚀

Fix browser (incompatible toggle versions)

parent 2ab41309
......@@ -21,8 +21,10 @@ function toggle(toggler, open) {
if (typeof open == 'undefined')
toggleElement(es[i], 'toggle-visible');
else if (open)
es[i].classList.add('toggle-visible');
else
es[i].style.display = open ? 'block' : 'none';
es[i].classList.remove('toggle-visible');
}
var icons = e.getElementsByClassName('toggle-icon');
......
......@@ -68,7 +68,7 @@ class Toc {
$child->title . '</span></div>';
} else {
echo '<div class="browser-item directory toggle-container" id="doc-' . $child->link . '">' .
'<span class="toggler" onclick="toggle(this)">' .
'<span class="toggler">' .
'<span class="toggle-icon">&#x229e</span>' .
'<span class="title">' . $child->title . '</span></span>';
$child->printTree();
......
Markdown is supported
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