]> git.koha-community.org Git - koha.git/commit
Bug 34131: Add 'current' class on correct side menu link
authorPedro Amorim <pedro.amorim@ptfs-europe.com>
Tue, 27 Jun 2023 12:38:09 +0000 (12:38 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 18 Jul 2023 09:05:45 +0000 (10:05 +0100)
commit919ba4ab3e1aee446e98769b94d9652aba937402
tree47b845cddc553b237e0f49590bee51e0c9a39db0
parent5d923bf69fde1d1bd7186012a7c3d0e972a61950
Bug 34131: Add 'current' class on correct side menu link

This changes the way we're looking for the correct menu item to set as
active.

If we don't find an exact match for path+params, we attempt to set
'current' to just matching on path.

What this does is it sets the 'Plugins' menu item as active, even if
the url is 'plugins-home.pl?method=report

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 680bf6af2faa3b1612e16f77ec58daf129ef431a)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/js/staff-global.js