diff --git a/static/js/cours.js b/static/js/cours.js index 96ac8d5..0ecc1d8 100644 --- a/static/js/cours.js +++ b/static/js/cours.js @@ -62,6 +62,10 @@ const uncollapse = (element) => { * @returns */ const deepestNodeOpened = (path, options) => { + if (path[0] === "") { + return options[0].parentNode.parentNode; + } + // Iterate over possible options for (let i = 0; i < options.length; ++i) { // If the directory and the current path match