From e78ffc6c795d20035c6384a96b80f1b7249a7578 Mon Sep 17 00:00:00 2001 From: Anna Dabrowska Date: Mon, 13 May 2019 18:19:31 +0200 Subject: [PATCH] Separate states of different sidebars --- Template.php | 5 +++-- js/sidebar.js | 19 +++++++++++++------ 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/Template.php b/Template.php index 32f4920..7f93528 100644 --- a/Template.php +++ b/Template.php @@ -115,10 +115,11 @@ class Template { global $ID; global $conf; + // id of the current sidebar, each sidebar must have its own state + $header = sprintf('
', page_findnearest($conf['sidebar'])); // add tabs if multiple navigation types available - $header = ''; if ($this->plugins['sitemapnavi'] !== null) { - $header = '