mirror of
https://github.com/adulau/brouilleursdeblanc.git
synced 2024-11-07 12:06:26 +00:00
Merge pull request #85 from javiercejudo/patch-1
fix(nav): clicking anywhere when the nav menu is hidden no longer opens it
This commit is contained in:
commit
20bd1c2b2c
1 changed files with 4 additions and 2 deletions
|
@ -16,7 +16,9 @@ var navigation = responsiveNav("#site-nav", { // Selector: The ID of the wrapper
|
|||
|
||||
$('html').click(function() {
|
||||
//Hide the menus if visible
|
||||
if ($(navigation.wrapper).hasClass('opened')) {
|
||||
navigation.toggle();
|
||||
}
|
||||
});
|
||||
|
||||
$('#site-nav').click(function(event){
|
||||
|
|
Loading…
Reference in a new issue