mirror of
https://github.com/adulau/brouilleursdeblanc.git
synced 2024-11-24 02:57:09 +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() {
|
$('html').click(function() {
|
||||||
//Hide the menus if visible
|
//Hide the menus if visible
|
||||||
navigation.toggle();
|
if ($(navigation.wrapper).hasClass('opened')) {
|
||||||
|
navigation.toggle();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#site-nav').click(function(event){
|
$('#site-nav').click(function(event){
|
||||||
|
@ -49,4 +51,4 @@ $(document).ready(function() {
|
||||||
// make it unique to apply your CSS animations just to this exact popup
|
// make it unique to apply your CSS animations just to this exact popup
|
||||||
mainClass: 'mfp-fade'
|
mainClass: 'mfp-fade'
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue