View | Details | Raw Unified | Return to bug 17794
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/admin-menu.inc (-5 / +8 lines)
Lines 2-13 Link Here
2
<script type="text/javascript">//<![CDATA[
2
<script type="text/javascript">//<![CDATA[
3
    $(document).ready(function() {
3
    $(document).ready(function() {
4
        var path = location.pathname.substring(1);
4
        var path = location.pathname.substring(1);
5
        var url = window.location.toString();
5
        if (path == "cgi-bin/koha/admin/marctagstructure.pl" || path == "cgi-bin/koha/admin/marc_subfields_structure.pl") {
6
        var params = '';
6
            $('#navmenulist a[href$="/cgi-bin/koha/admin/biblio_framework.pl"]').css('font-weight','bold');
7
        if ( url.match(/\?(.+)$/) ) {
7
        } else if (path == "cgi-bin/koha/admin/auth_tag_structure.pl" || path == "cgi-bin/koha/admin/auth_subfields_structure.pl") {
8
            params = "?" + RegExp.$1;
8
            $('#navmenulist a[href$="/cgi-bin/koha/admin/authtypes.pl"]').css('font-weight','bold');
9
        } else if (path == "cgi-bin/koha/admin/oai_set_mappings.pl") {
10
            $('#navmenulist a[href$="/cgi-bin/koha/admin/oai_sets.pl"]').css('font-weight','bold');
11
        } else {
12
            $('#navmenulist a[href$="/' + path + '"]').css('font-weight','bold');
9
        }
13
        }
10
        $('#navmenulist a[href$="/' + path + params + '"]').css('font-weight','bold');
11
    });
14
    });
12
//]]>
15
//]]>
13
</script>
16
</script>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc (-7 / +1 lines)
Lines 1-11 Link Here
1
<script type="text/javascript">//<![CDATA[
1
<script type="text/javascript">//<![CDATA[
2
    $(document).ready(function() {
2
    $(document).ready(function() {
3
        var path = location.pathname.substring(1);
3
        var path = location.pathname.substring(1);
4
        var url = window.location.toString();
5
        var params = '';
6
        if ( url.match(/\?(.+)$/) ) {
7
            params = "?" + RegExp.$1;
8
        }
9
        if (path.indexOf("labels") >= 0 && path.indexOf("spine") < 0 ) {
4
        if (path.indexOf("labels") >= 0 && path.indexOf("spine") < 0 ) {
10
          $('#navmenulist a[href$="/cgi-bin/koha/labels/label-home.pl"]').css('font-weight','bold');
5
          $('#navmenulist a[href$="/cgi-bin/koha/labels/label-home.pl"]').css('font-weight','bold');
11
        } else if (path.indexOf("patroncards") >= 0 ) {
6
        } else if (path.indexOf("patroncards") >= 0 ) {
Lines 13-19 Link Here
13
       } else if (path.indexOf("patron_lists") >= 0 ) {
8
       } else if (path.indexOf("patron_lists") >= 0 ) {
14
          $('#navmenulist a[href$="/cgi-bin/koha/patron_lists/lists.pl"]').css('font-weight','bold');
9
          $('#navmenulist a[href$="/cgi-bin/koha/patron_lists/lists.pl"]').css('font-weight','bold');
15
        } else {
10
        } else {
16
          $('#navmenulist a[href$="/' + path + params + '"]').css('font-weight','bold');
11
          $('#navmenulist a[href$="/' + path + '"]').css('font-weight','bold');
17
        }
12
        }
18
    });
13
    });
19
//]]>
14
//]]>
20
- 

Return to bug 17794