From 6dd0ff217460375bb01e192f642c592912c6fcbb Mon Sep 17 00:00:00 2001 From: Josef Moravec Date: Thu, 21 Dec 2017 18:12:38 +0000 Subject: [PATCH] Bug 19753: (QA follow-up) Style invoices menu item when on individual invoice page Signed-off-by: Josef Moravec Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/js/acquisitions-menu.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/acquisitions-menu.js b/koha-tmpl/intranet-tmpl/prog/js/acquisitions-menu.js index 49786b9f08..08bcc85b79 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/acquisitions-menu.js +++ b/koha-tmpl/intranet-tmpl/prog/js/acquisitions-menu.js @@ -1,4 +1,8 @@ $(document).ready(function() { var path = location.pathname.substring(1); - $('#navmenulist a[href$="/' + path + '"]').css('font-weight','bold'); -}); \ No newline at end of file + if (path.indexOf("invoice") >= 0) { + $('#navmenulist a[href$="/cgi-bin/koha/acqui/invoices.pl"]').css('font-weight','bold'); + } else { + $('#navmenulist a[href$="/' + path + '"]').css('font-weight','bold'); + } +}); -- 2.39.5