aboutsummaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
Diffstat (limited to 'assets')
-rw-r--r--assets/js/application.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/assets/js/application.js b/assets/js/application.js
index 95fc7b7fe..8adb5dccb 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