From 11b00783f8075957b243f08fdf0af45a007079fd Mon Sep 17 00:00:00 2001 From: Frieder Schrempf Date: Sun, 18 Apr 2021 16:14:08 +0200 Subject: [PATCH] Use direct links for sidebar elements with only a single subitem If a sidebar toggler contains only a single item with a link, there is no need to create a toggler with subnav at all. Let's just remove the subnav and link to the target directly. Signed-off-by: Frieder Schrempf --- js/sidebar.js | 38 ++++++++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/js/sidebar.js b/js/sidebar.js index bb33be1..21cedfa 100644 --- a/js/sidebar.js +++ b/js/sidebar.js @@ -124,7 +124,6 @@ jQuery(function () { ; $toggler = jQuery('