From c49ecc5f21f520b739c0c8a29ff4b5ece84c06ec Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Sun, 11 Aug 2013 15:03:48 -0700 Subject: [PATCH] refresh scrollspy after page 'loads' --- assets/js/application.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assets/js/application.js b/assets/js/application.js index e581fab700..66456ddb85 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() })