|
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 ) { |
|
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 |
- |
|
|