Bug fix of multilevel menu in the small mode.

pull/693/head
junjie 2018-05-28 17:15:08 +08:00
parent 4dea1e2769
commit 85ff8ddf3b
1 changed files with 2 additions and 2 deletions

View File

@ -87,8 +87,8 @@ var setContentHeight = function () {
{ {
if ( $BODY.is( ".nav-sm" ) ) if ( $BODY.is( ".nav-sm" ) )
{ {
$SIDEBAR_MENU.find( "li" ).removeClass( "active active-sm" ); $li.parent().find( "li" ).removeClass( "active active-sm" );
$SIDEBAR_MENU.find( "li ul" ).slideUp(); $li.parent().find( "li ul" ).slideUp();
} }
} }
$li.addClass('active'); $li.addClass('active');