]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
refresh scrollspy after page 'loads'
authorJacob Thornton <jacobthornton@gmail.com>
Sun, 11 Aug 2013 22:03:48 +0000 (15:03 -0700)
committerJacob Thornton <jacobthornton@gmail.com>
Sun, 11 Aug 2013 22:03:48 +0000 (15:03 -0700)
assets/js/application.js

index e581fab7000b2f56e1ae1c8d73ac72b90817262c..66456ddb85afd4323f946f08c4045299dc64c33b 100644 (file)
       offset: navHeight
     })
 
+    $window.on('load', function () {
+      $body.scrollspy('refresh')
+    })
+
     $('.bs-docs-container [href=#]').click(function (e) {
       e.preventDefault()
     })