mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-25 21:09:06 +02:00
change how collapse works - collapse, collapsing, and in
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user