From 675f7bc8995e9068cbf1a3f3ed31f80a0586a97a Mon Sep 17 00:00:00 2001 From: "Antoine Vandevenne (anv)" Date: Fri, 4 Jun 2021 11:37:17 +0200 Subject: [PATCH] [FIX] odoo_theme: highlight all occurrences of a same entry in the menu When a page is referenced multiple times in the global toctree, only its latest TOC entry was highlighted (and expanded if it's a TOC page). This commit allows a page to be referenced multiple times at any level of the global TOC while correctly highlighting all of its TOC entries. task-2551473 --- extensions/odoo_theme/static/js/menu.js | 28 ++++++++++++++++--------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/extensions/odoo_theme/static/js/menu.js b/extensions/odoo_theme/static/js/menu.js index 2f4d3aef7..cc56dbd72 100644 --- a/extensions/odoo_theme/static/js/menu.js +++ b/extensions/odoo_theme/static/js/menu.js @@ -21,22 +21,30 @@ * TOC entries (
  • elements) that are on the path of the displayed page receive the * `o_active_toc_entry` class, and their related (parent) TOC entry list (