fix(nav): clicking anywhere when the nav is hidden no longer opens the menu

This commit is contained in:
Javier Cejudo 2014-08-27 22:34:18 +10:00 committed by Michael Rose
parent a5c453080d
commit 2c04cb2370

View file

@ -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){