From 171ef729945ad04fefadc16399a5e08833a5ebef 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Followed test plan, works as expected. Signed-off-by: Marc Véron Re-tested, works as expected. Signed-off-by: Marc Véron Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- 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 a4bf84a33d..09c6bda8d8 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("batchMod.pl?del=1") >= 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.39.5