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:
Michael Rose 2014-08-27 10:34:40 -04:00
commit 20bd1c2b2c

View file

@ -16,7 +16,9 @@ var navigation = responsiveNav("#site-nav", { // Selector: The ID of the wrapper
$('html').click(function() {
//Hide the menus if visible
navigation.toggle();
if ($(navigation.wrapper).hasClass('opened')) {
navigation.toggle();
}
});
$('#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
mainClass: 'mfp-fade'
});
});
});