summaryrefslogtreecommitdiffstats
path: root/theme/javascript
diff options
context:
space:
mode:
Diffstat (limited to 'theme/javascript')
-rwxr-xr-xtheme/javascript/app.js3
-rwxr-xr-xtheme/javascript/core/navigation.js6
2 files changed, 6 insertions, 3 deletions
diff --git a/theme/javascript/app.js b/theme/javascript/app.js
index 53d8196..6cf4120 100755
--- a/theme/javascript/app.js
+++ b/theme/javascript/app.js
@@ -40,8 +40,5 @@ require([
// Init navigation
navigation.init();
-
- // Focus on content
- $(".book-body").focus();
});
}); \ No newline at end of file
diff --git a/theme/javascript/core/navigation.js b/theme/javascript/core/navigation.js
index 747bd03..6e775cf 100755
--- a/theme/javascript/core/navigation.js
+++ b/theme/javascript/core/navigation.js
@@ -42,6 +42,12 @@ define([
// Show progress
progress.show();
+
+ // Reset scroll
+ $(".book-body").scrollTop(0);
+
+ // Focus on content
+ $(".book-body").focus();
};
var handlePagination = function (e) {