From 6c70f9e308355dc8ed4e2a1f51042798bfb4e60e Mon Sep 17 00:00:00 2001 From: Baris Usakli Date: Mon, 23 Sep 2013 14:51:16 -0400 Subject: [PATCH] only collapse header if its expanded --- public/src/forum/footer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/src/forum/footer.js b/public/src/forum/footer.js index 27a706d974..7cec7d0ccc 100644 --- a/public/src/forum/footer.js +++ b/public/src/forum/footer.js @@ -96,7 +96,8 @@ } $('#main-nav a,#right-menu a').on('click', function() { - $('.navbar-header button').click(); + if($('.navbar .navbar-collapse').hasClass('in')) + $('.navbar-header button').click(); }); });