Fix main menu active link highlight clear
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
@@ -49,13 +49,11 @@ class MayanApp {
|
||||
|
||||
static setupNavBarState () {
|
||||
$('body').on('click', '.a-main-menu-accordion-link', function (event) {
|
||||
var $this = $(this);
|
||||
|
||||
$('.a-main-menu-accordion-link').each(function (index, value) {
|
||||
$this.parent().removeClass('active');
|
||||
$(this).parent().removeClass('active');
|
||||
});
|
||||
|
||||
$this.parent().addClass('active');
|
||||
$(this).parent().addClass('active');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user