2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-11 18:02:28 +03:00

change how collapse works - collapse, collapsing, and in

This commit is contained in:
fat
2013-07-26 20:34:39 -07:00
parent 178d8e98de
commit e2d4cf5f68
8 changed files with 108 additions and 80 deletions
+2 -4
View File
@@ -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