Bug 19600: (QA follow-up) Apply css to menu item for item_search_field page
[koha.git] / koha-tmpl / intranet-tmpl / prog / js / admin-menu.js
1 $(document).ready(function() {
2     var path = location.pathname.substring(1);
3     if (path == "cgi-bin/koha/admin/marctagstructure.pl" || path == "cgi-bin/koha/admin/marc_subfields_structure.pl") {
4         $('#navmenulist a[href$="/cgi-bin/koha/admin/biblio_framework.pl"]').css('font-weight','bold');
5     } else if (path == "cgi-bin/koha/admin/auth_tag_structure.pl" || path == "cgi-bin/koha/admin/auth_subfields_structure.pl") {
6         $('#navmenulist a[href$="/cgi-bin/koha/admin/authtypes.pl"]').css('font-weight','bold');
7     } else if (path == "cgi-bin/koha/admin/oai_set_mappings.pl") {
8         $('#navmenulist a[href$="/cgi-bin/koha/admin/oai_sets.pl"]').css('font-weight','bold');
9     } else if (path == "cgi-bin/koha/admin/items_search_field.pl") {
10         $('#navmenulist a[href$="/cgi-bin/koha/admin/items_search_fields.pl"]').css('font-weight','bold');
11     } else {
12         $('#navmenulist a[href$="/' + path + '"]').css('font-weight','bold');
13     }
14 });