From d5db97930d3c5c426fd8e53484c224ba1b02daf8 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Mon, 21 Aug 2017 18:50:50 -0400 Subject: [PATCH] prevent "plugins" menu from being highlighted when going to Extend -> Plugins --- public/src/admin/admin.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/src/admin/admin.js b/public/src/admin/admin.js index 0b6867b81c..3dc22afd62 100644 --- a/public/src/admin/admin.js +++ b/public/src/admin/admin.js @@ -99,6 +99,10 @@ $('#main-menu li').removeClass('active'); $('#main-menu a').removeClass('active').filter('[href="' + url + '"]').each(function () { var menu = $(this); + if (menu.parent().attr('data-link')) { + return; + } + menu .parent().addClass('active') .parents('.menu-item').addClass('active');