[FIX] hide menu until it is correctly specified by the js code.
This commit is contained in:
parent
4d91a3ff27
commit
511c8577bc
@ -54,7 +54,8 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block header %}
|
{% 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" %}
|
{% include "layout_templates/menu.html" %}
|
||||||
</nav>
|
</nav>
|
||||||
<header class="o_main_header border-bottom">
|
<header class="o_main_header border-bottom">
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
/* global _prepareAccordion */ //see utils.js
|
||||||
(function ($) {
|
(function ($) {
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', () => {
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
@ -9,6 +10,9 @@
|
|||||||
// Allow to respectively highlight and expand the TOC entries and their related TOC
|
// Allow to respectively highlight and expand the TOC entries and their related TOC
|
||||||
// entry list whose page is displayed.
|
// entry list whose page is displayed.
|
||||||
_flagActiveTocEntriesAndLists();
|
_flagActiveTocEntriesAndLists();
|
||||||
|
|
||||||
|
// Show hidden menu when the css classes have been properly specified
|
||||||
|
this.navigationMenu.removeAttribute('hidden');
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
/* global _prepareAccordion */ //see utils.js
|
||||||
(function ($) {
|
(function ($) {
|
||||||
|
|
||||||
// Customize the page TOC
|
// Customize the page TOC
|
||||||
|
Loading…
Reference in New Issue
Block a user