diff options
Diffstat (limited to 'fossee_manim/static/js/base.js')
-rw-r--r-- | fossee_manim/static/js/base.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/fossee_manim/static/js/base.js b/fossee_manim/static/js/base.js new file mode 100644 index 0000000..3c673be --- /dev/null +++ b/fossee_manim/static/js/base.js @@ -0,0 +1,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; + });
\ No newline at end of file |