aboutsummaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2013-08-11 15:03:48 -0700
committerJacob Thornton <[email protected]>2013-08-11 15:03:48 -0700
commitc49ecc5f21f520b739c0c8a29ff4b5ece84c06ec (patch)
treea428a13f501a89ac286099dc7215e62e2d9a5667 /assets
parent31ab07b32aeabd8df3c7430dbb31d03b474360f5 (diff)
downloadbootstrap-c49ecc5f21f520b739c0c8a29ff4b5ece84c06ec.tar.xz
bootstrap-c49ecc5f21f520b739c0c8a29ff4b5ece84c06ec.zip
refresh scrollspy after page 'loads'
Diffstat (limited to 'assets')
-rw-r--r--assets/js/application.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/assets/js/application.js b/assets/js/application.js
index e581fab70..66456ddb8 100644
--- a/assets/js/application.js
+++ b/assets/js/application.js
@@ -16,6 +16,10 @@
offset: navHeight
})
+ $window.on('load', function () {
+ $body.scrollspy('refresh')
+ })
+
$('.bs-docs-container [href=#]').click(function (e) {
e.preventDefault()
})