summaryrefslogtreecommitdiff
path: root/static/js/base.js
blob: 3c673bef9dc8deae8cbcd0fa8684631580ec58e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$('.dropdown-menu a.dropdown-toggle').on('click', function(e) {
    if (!$(this).next().hasClass('show')) {
      $(this).parents('.dropdown-menu').first().find('.show').removeClass("show");
    }
    var $subMenu = $(this).next(".dropdown-menu");
    $subMenu.toggleClass('show');
  
  
    $(this).parents('li.nav-item.dropdown.show').on('hidden.bs.dropdown', function(e) {
      $('.dropdown-submenu .show').removeClass("show");
    });
  
  
    return false;
  });