Skip to content

Commit cf53c10

Browse files
committed
update menuAction js
1 parent af31a30 commit cf53c10

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

adminlteui/templates/admin/base.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -462,9 +462,10 @@ <h3 class="control-sidebar-heading">Chat Settings</h3>
462462
}
463463

464464
console.log('menu matched.', window.location.href, menuActions[i].href);
465-
menuActions[i].parentNode.setAttribute('class', 'active');
466-
menuActions[i].parentNode.parentNode.setAttribute('class', 'treeview-menu menu-open');
467-
menuActions[i].parentNode.parentNode.parentNode.setAttribute('class', 'treeview active');
465+
if (menuActions[i].parentNode.parentNode.getAttribute('class') !== 'sidebar-menu') {
466+
menuActions[i].parentNode.parentNode.setAttribute('class', 'treeview-menu menu-open');
467+
menuActions[i].parentNode.parentNode.parentNode.setAttribute('class', 'treeview active');
468+
}
468469
break
469470
}
470471
} catch (e) {

0 commit comments

Comments
 (0)