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() { $('html').click(function() {
//Hide the menus if visible //Hide the menus if visible
if ($(navigation.wrapper).hasClass('opened')) {
navigation.toggle(); navigation.toggle();
}
}); });
$('#site-nav').click(function(event){ $('#site-nav').click(function(event){