From b0b6268a9e75198126d334fd74af65033bd56300 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 6 Jun 2012 10:18:01 +0200 Subject: [PATCH] Bug 8195: Selected link must be bold (in admin and tools) For several links, the selected entry is not bold, try with these pages: admin/smart-rules.pl admin/biblio_framework.pl tools/export.pl This patch fixes this behaviour Signed-off-by: Owen Leonard Signed-off-by: Paul Poulain --- .../prog/en/includes/admin-menu.inc | 7 ++++--- .../prog/en/includes/tools-menu.inc | 17 +++++++++-------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/admin-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/admin-menu.inc index 87596c0d59..5611a043c4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/admin-menu.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/admin-menu.inc @@ -2,9 +2,10 @@ $(document).ready(function() { var path = location.pathname.substring(1); var url = window.location.toString(); - url.match(/\?(.+)$/); - var params = RegExp.$1; - if (params) { params = "?" + params; } + var params = ''; + if ( url.match(/\?(.+)$/) ) { + params = "?" + RegExp.$1; + } $('#navmenulist a[href$="/' + path + params + '"]').css('font-weight','bold'); }); //]]> 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 0c3ac93fc9..d5ed7800e2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc @@ -1,12 +1,13 @@