diff options
author | Akshen | 2019-03-05 11:53:37 +0530 |
---|---|---|
committer | GitHub | 2019-03-05 11:53:37 +0530 |
commit | d2867b9f320ab823f0d40ed948867019e172ee79 (patch) | |
tree | 72b1f971823ecb1aed88ce793c69921f66e4291e /static/js/base.js | |
parent | dd647ee3f5c0eb77fc04024c9864cd69a963bc16 (diff) | |
parent | efda4b675ab162346a72abf0ceee29cfc0f99001 (diff) | |
download | FOSSEE_animations-d2867b9f320ab823f0d40ed948867019e172ee79.tar.gz FOSSEE_animations-d2867b9f320ab823f0d40ed948867019e172ee79.tar.bz2 FOSSEE_animations-d2867b9f320ab823f0d40ed948867019e172ee79.zip |
Merge pull request #1 from Akshen/develop
Develop
Diffstat (limited to 'static/js/base.js')
-rw-r--r-- | static/js/base.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/static/js/base.js b/static/js/base.js new file mode 100644 index 0000000..3c673be --- /dev/null +++ b/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 |