From d6faa3fca28228ef71279d3e0cdfd88af7e24209 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Wed, 8 Feb 2017 02:07:29 +0000 Subject: [PATCH] Bug 18077: Batch item modification link is bold when batch item deletion is active in tools menu To test: 1) Go to Tools -> Batch item deletion 2) Notice the link for Batch item MODIFICATION is bold, not the deletion link 3) Apply patch and refresh page 4) Correct link should now be bold. 5) Go to batch item modification and confirm the correct link is bold Sponsored-by: Catalyst IT --- koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc index a4bf84a..3d706ea 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc @@ -5,8 +5,10 @@ $('#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 ) { + } else if (path.indexOf("patron_lists") >= 0 ) { $('#navmenulist a[href$="/cgi-bin/koha/patron_lists/lists.pl"]').css('font-weight','bold'); + } else if ((path+location.search).indexOf("del") >= 0 ) { + $('#navmenulist a[href$="/cgi-bin/koha/tools/batchMod.pl?del=1"]').css('font-weight','bold'); } else { $('#navmenulist a[href$="/' + path + '"]').css('font-weight','bold'); } -- 2.1.4