Bug 15213 - Fix tools sidebar to highlight Patron lists when in that module
authorLiz Rea <liz@catalyst.net.nz>
Thu, 19 Nov 2015 22:29:44 +0000 (11:29 +1300)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 10 Jun 2016 18:06:34 +0000 (18:06 +0000)
To test:

Add some patron lists, navigate through the lists interface and make
sure that while you are in the module, that Patron lists is highlighted
on the sidebar.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Amended patch: fix alignement

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc

index 12057cc..63c318e 100644 (file)
@@ -10,6 +10,8 @@
           $('#navmenulist a[href$="/cgi-bin/koha/labels/label-home.pl"]').css('font-weight','bold');
         } else if (path.indexOf("patroncards") >= 0 ) {
           $('#navmenulist a[href$="/cgi-bin/koha/patroncards/home.pl"]').css('font-weight','bold');
+       } else if (path.indexOf("patron_lists") >= 0 ) {
+          $('#navmenulist a[href$="/cgi-bin/koha/patron_lists/lists.pl"]').css('font-weight','bold');
         } else {
           $('#navmenulist a[href$="/' + path + params + '"]').css('font-weight','bold');
         }