diff --git a/extensions/odoo_theme/static/js/menu.js b/extensions/odoo_theme/static/js/menu.js index ca6253a15..0a0a5cf11 100644 --- a/extensions/odoo_theme/static/js/menu.js +++ b/extensions/odoo_theme/static/js/menu.js @@ -6,10 +6,32 @@ // Allow to automatically collapse and expand TOC entries _prepareAccordion(this.navigationMenu); + // Allow to respectively highlight and expand the TOC entries and their related TOC + // entry list whose page is displayed. + _flagActiveTocEntriesAndLists(); + // Add a class with the name of the file to each corresponding menu item _flagMenuItemsWithFileName(); }); + /** + * Add the relevant classes on the TOC entries (and lists) whose page is displayed. + * + * TOC entries whose page is displayed (
  • elements) receive the `o_active_toc_entry` class + * and their related TOC entry list (