summaryrefslogtreecommitdiffstats
path: root/theme/javascript
diff options
context:
space:
mode:
Diffstat (limited to 'theme/javascript')
-rwxr-xr-xtheme/javascript/core/navigation.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/theme/javascript/core/navigation.js b/theme/javascript/core/navigation.js
index 5c615ab..cfc55d1 100755
--- a/theme/javascript/core/navigation.js
+++ b/theme/javascript/core/navigation.js
@@ -63,6 +63,8 @@ define([
};
var preparePage = function() {
+ var $pageWrapper = $(".book-body .page-wrapper");
+
// Bind exercises/quiz
exercises.init();
quiz.init();
@@ -74,10 +76,10 @@ define([
updateNavigationPosition();
// Reset scroll
- $(".book-body").scrollTop(0);
+ $pageWrapper.scrollTop(0);
// Focus on content
- $(".book-body").focus();
+ $pageWrapper.focus();
// Update GitHub count
if (state.githubId) {