From 56efbf7dd2bd27e12ffef6f7e5469dede22bb49d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 6 Aug 2019 14:43:28 +0200 Subject: [PATCH] portal agent: add support for submenus (#35478) --- static/portal-agent/js/publik.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/static/portal-agent/js/publik.js b/static/portal-agent/js/publik.js index 64f8eeac..4c9901b7 100644 --- a/static/portal-agent/js/publik.js +++ b/static/portal-agent/js/publik.js @@ -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'); }