From 40f3f1d2ad64d99bae7b4faefb02cbff02c0d4f3 Mon Sep 17 00:00:00 2001 From: Jerome Lachaud Date: Fri, 1 Aug 2014 14:36:25 +0100 Subject: [PATCH] Update freelancer.js Updated the responsive menu to auto-collapse when a menu item is clicked --- js/freelancer.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/js/freelancer.js b/js/freelancer.js index 5003f3f..d0adba3 100755 --- a/js/freelancer.js +++ b/js/freelancer.js @@ -29,4 +29,9 @@ $(function() { // Highlight the top nav as scrolling occurs $('body').scrollspy({ target: '.navbar-fixed-top' -}) \ No newline at end of file +}) + +// Closes the Responsive Menu on Menu Item Click +$('.navbar-collapse ul li a').click(function() { + $('.navbar-toggle:visible').click(); +});