From b7447dd1a4c58c43bdb140c64d63c2d57a511c77 Mon Sep 17 00:00:00 2001 From: Patrick MacMannis Date: Tue, 7 Apr 2015 07:10:59 -0400 Subject: [PATCH] Modified selector logic --- js/agency.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/agency.js b/js/agency.js index cedc097..84d4caa 100644 --- a/js/agency.js +++ b/js/agency.js @@ -26,7 +26,7 @@ $('.navbar-collapse ul li a').click(function() { }); // 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')) { $('.navbar-toggle:visible').click(); }