From 2816354d7877b6e19850f51ed3cb33bf753edce5 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 Signed-off-by: Chris Cormack --- .../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 5b6c7cd2d9..453a3a4dfe 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 @@