Koha/koha-tmpl/intranet-tmpl/prog/js/labels-menu.js
Owen Leonard ab2c692922
Bug 37250: (follow-up) More improvements to menus
- Add highlighting to new sidebar menu
- Make labels more consistent in menus, breadcrumbs, and titles
- Add 'Print barcode range' link to the labels home page and sidebar
  menu.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2025-03-17 11:59:55 +01:00

24 lines
1 KiB
JavaScript

$(document).ready(function () {
var path = location.pathname.substring(1);
if (path.indexOf("label-edit-batch") >= 0) {
$(
'#labels-menu a[href$="/cgi-bin/koha/labels/label-manage.pl?label_element=batch"]'
).addClass("current");
} else if (path.indexOf("label-edit-layout") >= 0) {
$(
'#labels-menu a[href$="/cgi-bin/koha/labels/label-manage.pl?label_element=layout"]'
).addClass("current");
} else if (path.indexOf("label-edit-template") >= 0) {
$(
'#labels-menu a[href$="/cgi-bin/koha/labels/label-manage.pl?label_element=template"]'
).addClass("current");
} else if (path.indexOf("label-edit-profile") >= 0) {
$(
'#labels-menu a[href$="/cgi-bin/koha/labels/label-manage.pl?label_element=profile"]'
).addClass("current");
} else if (path.indexOf("label-edit-range") >= 0) {
$(
'#labels-menu a[href$="/cgi-bin/koha/labels/label-edit-range.pl"]'
).addClass("current");
}
});