Skip to content

Commit 701375c

Browse files
committed
include active parent menu item with dom traversal
1 parent 715c1f7 commit 701375c

File tree

1 file changed

+2
-0
lines changed
  • aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Mvc/wwwroot/js

1 file changed

+2
-0
lines changed

aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Mvc/wwwroot/js/admin.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ $.AdminBSB.leftSideBar = {
7070
//When page load
7171
$.each($('.menu .list li.active'), function (i, val) {
7272
var $activeAnchors = $(val).find('a:eq(0)');
73+
var $parentAnchors = $(val).parentsUntil('.menu .list', 'li').children('a:first-child');
74+
$activeAnchors = $activeAnchors.add($parentAnchors);
7375

7476
$activeAnchors.addClass('toggled');
7577
$activeAnchors.next().show();

0 commit comments

Comments
 (0)