-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
infinitely number of submenus issue #20
- Loading branch information
1 parent
f84af73
commit 7e7141e
Showing
7 changed files
with
318 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
jQuery('ul.dropdown-menu [data-toggle=dropdown]').on('click', function(event) { | ||
// Avoid following the href location when clicking | ||
event.preventDefault(); | ||
// Avoid having the menu to close when clicking | ||
event.stopPropagation(); | ||
// If a menu is already open we close it | ||
jQuery('ul.dropdown-menu [data-toggle=dropdown]').parent().removeClass('open'); | ||
// opening the one you clicked on | ||
jQuery(this).parent().addClass('open'); | ||
}); |
Oops, something went wrong.