portal agent: add support for submenus (#35478)

This commit is contained in:
Frédéric Péters 2019-08-06 14:43:28 +02:00
parent 4427875d67
commit 56efbf7dd2
1 changed files with 3 additions and 0 deletions

View File

@ -51,6 +51,9 @@ $(function() {
} else if (element.slug !== undefined) {
$(li).find('a').addClass('icon-' + element.slug);
}
if (element.sub === true) {
$(li).addClass('sub');
}
if (window.location.href.indexOf(element.url) == 0) {
$(li).addClass('active');
}