From e2d4cf5f683e13440c98d36b6a38d1b501336adc Mon Sep 17 00:00:00 2001 From: fat Date: Fri, 26 Jul 2013 20:34:39 -0700 Subject: change how collapse works - collapse, collapsing, and in --- assets/js/application.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'assets') diff --git a/assets/js/application.js b/assets/js/application.js index 99ba1413d..dfef03d35 100644 --- a/assets/js/application.js +++ b/assets/js/application.js @@ -15,13 +15,11 @@ offset: navHeight }) - // Disable certain links in docs - $('.bs-docs-container [href=#]').click(function (e) { + $('[href^=#]').click(function (e) { e.preventDefault() }) - $(document.body).on('click', '[href^=#]', function (e) { - + $(document.body).on('click', '.bs-sidenav [href^=#]', function (e) { var $target = $(this.getAttribute('href')) e.preventDefault() // prevent browser scroll -- cgit v1.2.3