Skip to content

Commit

Permalink
Fix main menu active entry handling
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
  • Loading branch information
Roberto Rosario committed Jul 13, 2021
1 parent 8b3cbe4 commit 379c28a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
4 changes: 4 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
4.0.12 (2021-07-XX)
===================
- Fix main menu active entry handling.

4.0.11 (2021-07-06)
===================
- Update date time copy code from migration document:0063 to work with
Expand Down
9 changes: 2 additions & 7 deletions mayan/apps/appearance/static/appearance/js/mayan_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,8 @@ class MayanApp {

static setupNavBarState () {
$('body').on('click', '#accordion-sidebar a', function (event) {
var $this = $(this);

$('#accordion-sidebar a').each(function (index, value) {
$this.parents('li').removeClass('active');
});

$this.parents('li').addClass('active');
$('#accordion-sidebar li').removeClass('active');
$(this).parents('li').addClass('active');
});
}

Expand Down

0 comments on commit 379c28a

Please sign in to comment.