diff --git a/js/agency.js b/js/agency.js index 4099075..7e6c72a 100644 --- a/js/agency.js +++ b/js/agency.js @@ -19,8 +19,8 @@ }); // Closes the Responsive Menu on Menu Item Click - $('.navbar-collapse ul li a:not(.dropdown-toggle)').click(function() { - $('.navbar-toggle:visible').click(); + $('.navbar-collapse ul li a').click(function(){ + $('.navbar-toggle:visible').click(); }); // Offset for Main Navigation diff --git a/js/agency.min.js b/js/agency.min.js index b49b9c3..b3a6694 100644 --- a/js/agency.min.js +++ b/js/agency.min.js @@ -3,4 +3,4 @@ * Copyright 2013-2016 Start Bootstrap * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap/blob/gh-pages/LICENSE) */ -!function(t){"use strict";t("a.page-scroll").bind("click",function(o){var a=t(this);t("html, body").stop().animate({scrollTop:t(a.attr("href")).offset().top-50},1250,"easeInOutExpo"),o.preventDefault()}),t("body").scrollspy({target:".navbar-fixed-top",offset:51}),t(".navbar-collapse ul li a:not(.dropdown-toggle)").click(function(){t(".navbar-toggle:visible").click()}),t("#mainNav").affix({offset:{top:100}})}(jQuery); \ No newline at end of file +!function(t){"use strict";t("a.page-scroll").bind("click",function(a){var o=t(this);t("html, body").stop().animate({scrollTop:t(o.attr("href")).offset().top-50},1250,"easeInOutExpo"),a.preventDefault()}),t("body").scrollspy({target:".navbar-fixed-top",offset:51}),t(".navbar-collapse ul li a").click(function(){t(".navbar-toggle:visible").click()}),t("#mainNav").affix({offset:{top:100}})}(jQuery);