Bugzilla – Attachment 58331 Details for
Bug 17794
Menu items in Tools menu and Admin menu not bold when active but not on linked page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17794: Menu items in Tools menu and Admin menu not showing bold when active but not on linked page
Bug-17794-Menu-items-in-Tools-menu-and-Admin-menu-.patch (text/plain), 4.08 KB, created by
Aleisha Amohia
on 2016-12-21 02:54:56 UTC
(
hide
)
Description:
Bug 17794: Menu items in Tools menu and Admin menu not showing bold when active but not on linked page
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2016-12-21 02:54:56 UTC
Size:
4.08 KB
patch
obsolete
>From 077b0d4af3faf9b9a15bf549afd50396afb396d4 Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >Date: Wed, 21 Dec 2016 02:27:46 +0000 >Subject: [PATCH] Bug 17794: Menu items in Tools menu and Admin menu not > showing bold when active but not on linked page > >To reproduce: >admin-menu >1) Go to a page like admin/categories.pl >2) Click New Category >3) Notice Patron categories in the sidebar menu is no longer bold >tools-menu >4) Go to a page like reviews/reviewswaiting.pl >5) Notice bold Comments in sidebar menu >6) Click Approved Comments tab >7) Notice no longer bold in sidebar menu >To test: >8) Apply patch and refresh page >9) Follow above steps to reproduce bug, confirm that active links are >always bold >10) Test with other links to confirm nothing has broken >Special cases >11) Go To admin -> MARC bibliographic frameworks -> Actions for any >framework -> MARC structure >12) Confirm sidebar menu link is still bold >13) Go to admin -> Authority types -> Actions for any auth type -> MARC >structure >14) Confirm sidebar menu link is still bold >15) Click Actions for any tag -> Subfields >16) Confirm sidebar menu link is still bold >17) Go to admin -> OAI sets config -> Actions for any set -> Define >mappings >18) Confirm sidebar menu link is still bold > >Sponsored-by: Catalyst IT >--- > koha-tmpl/intranet-tmpl/prog/en/includes/admin-menu.inc | 13 ++++++++----- > koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc | 7 +------ > 2 files changed, 9 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 e736272..9f8f4f6 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/admin-menu.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/admin-menu.inc >@@ -2,12 +2,15 @@ > <script type="text/javascript">//<![CDATA[ > $(document).ready(function() { > var path = location.pathname.substring(1); >- var url = window.location.toString(); >- var params = ''; >- if ( url.match(/\?(.+)$/) ) { >- params = "?" + RegExp.$1; >+ if (path == "cgi-bin/koha/admin/marctagstructure.pl" || path == "cgi-bin/koha/admin/marc_subfields_structure.pl") { >+ $('#navmenulist a[href$="/cgi-bin/koha/admin/biblio_framework.pl"]').css('font-weight','bold'); >+ } else if (path == "cgi-bin/koha/admin/auth_tag_structure.pl" || path == "cgi-bin/koha/admin/auth_subfields_structure.pl") { >+ $('#navmenulist a[href$="/cgi-bin/koha/admin/authtypes.pl"]').css('font-weight','bold'); >+ } else if (path == "cgi-bin/koha/admin/oai_set_mappings.pl") { >+ $('#navmenulist a[href$="/cgi-bin/koha/admin/oai_sets.pl"]').css('font-weight','bold'); >+ } else { >+ $('#navmenulist a[href$="/' + path + '"]').css('font-weight','bold'); > } >- $('#navmenulist a[href$="/' + path + params + '"]').css('font-weight','bold'); > }); > //]]> > </script> >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 63c318e..a4bf84a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc >@@ -1,11 +1,6 @@ > <script type="text/javascript">//<![CDATA[ > $(document).ready(function() { > var path = location.pathname.substring(1); >- var url = window.location.toString(); >- var params = ''; >- if ( url.match(/\?(.+)$/) ) { >- params = "?" + RegExp.$1; >- } > if (path.indexOf("labels") >= 0 && path.indexOf("spine") < 0 ) { > $('#navmenulist a[href$="/cgi-bin/koha/labels/label-home.pl"]').css('font-weight','bold'); > } else if (path.indexOf("patroncards") >= 0 ) { >@@ -13,7 +8,7 @@ > } else if (path.indexOf("patron_lists") >= 0 ) { > $('#navmenulist a[href$="/cgi-bin/koha/patron_lists/lists.pl"]').css('font-weight','bold'); > } else { >- $('#navmenulist a[href$="/' + path + params + '"]').css('font-weight','bold'); >+ $('#navmenulist a[href$="/' + path + '"]').css('font-weight','bold'); > } > }); > //]]> >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 17794
:
58279
|
58328
|
58330
|
58331
|
58654
|
58804