Modified selector logic

This commit is contained in:
Patrick MacMannis 2015-04-07 07:10:59 -04:00
parent 3f694e4cb6
commit b7447dd1a4

View File

@ -26,7 +26,7 @@ $('.navbar-collapse ul li a').click(function() {
}); });
// Closes the Responsive Menu on Click outside Menu // Closes the Responsive Menu on Click outside Menu
$('header, section, aside, footer').click(function() { $('body > *').not('nav').click(function() {
if(!$('button.navbar-toggle').hasClass('collapsed')) { if(!$('button.navbar-toggle').hasClass('collapsed')) {
$('.navbar-toggle:visible').click(); $('.navbar-toggle:visible').click();
} }