]> 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)
committerMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Tue, 18 Jul 2023 13:45:59 +0000 (13:45 +0000)
commit04d21a63bb29be04caaa7c7089fa86acd564d02f
tree34cb6f650e446f51439513509538a6ac6fb039df
parent36650312a6bbe843d7941fe0acc1526ea5cb7e08
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>
(cherry picked from commit 919ba4ab3e1aee446e98769b94d9652aba937402)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/js/staff-global.js