[FIX] hide menu until it is correctly specified by the js code.

This commit is contained in:
Victor Feyens 2021-03-19 14:40:48 +01:00
parent 4d91a3ff27
commit 511c8577bc
3 changed files with 7 additions and 1 deletions

View File

@ -54,7 +54,8 @@
{% endblock %}
{% block header %}
<nav id="o_main_toctree" class="o_side_nav border-end">
{# shown when js has properly set all the classes on the toc elements #}
<nav id="o_main_toctree" class="o_side_nav border-end" hidden>
{% include "layout_templates/menu.html" %}
</nav>
<header class="o_main_header border-bottom">

View File

@ -1,3 +1,4 @@
/* global _prepareAccordion */ //see utils.js
(function ($) {
document.addEventListener('DOMContentLoaded', () => {
@ -9,6 +10,9 @@
// Allow to respectively highlight and expand the TOC entries and their related TOC
// entry list whose page is displayed.
_flagActiveTocEntriesAndLists();
// Show hidden menu when the css classes have been properly specified
this.navigationMenu.removeAttribute('hidden');
});
/**

View File

@ -1,3 +1,4 @@
/* global _prepareAccordion */ //see utils.js
(function ($) {
// Customize the page TOC