summaryrefslogtreecommitdiffstats
path: root/theme/javascript/core/navigation.js
diff options
context:
space:
mode:
Diffstat (limited to 'theme/javascript/core/navigation.js')
-rwxr-xr-xtheme/javascript/core/navigation.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/theme/javascript/core/navigation.js b/theme/javascript/core/navigation.js
index c6a33b4..e2ae5bc 100755
--- a/theme/javascript/core/navigation.js
+++ b/theme/javascript/core/navigation.js
@@ -72,8 +72,9 @@ define([
};
var preparePage = function() {
- var $bodyInner = $(".book-body .body-inner");
- var $pageWrapper = $(".book-body .page-wrapper");
+ var $bookBody = $(".book-body");
+ var $bookInner = $bookBody.find(".body-inner");
+ var $pageWrapper = $bookInner.find(".page-wrapper");
// Show progress
progress.show();
@@ -85,7 +86,8 @@ define([
$pageWrapper.focus();
// Reset scroll
- $bodyInner.scrollTop(0);
+ $bookInner.scrollTop(0);
+ $bookBody.scrollTop(0);
// Notify
events.trigger("page.change");