summaryrefslogtreecommitdiffstats
path: root/theme/javascript/core
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-04-14 15:43:11 +0200
committerSamy Pessé <samypesse@gmail.com>2014-04-14 15:43:11 +0200
commit1ff7e88cea6b33cb403ce9cc0450a0a326fb1998 (patch)
tree6809928f83c38f733de678c822d2a1a5876dd7c3 /theme/javascript/core
parentc3ba975d6c25c599f197698234f94c8e99e40ff1 (diff)
downloadgitbook-1ff7e88cea6b33cb403ce9cc0450a0a326fb1998.zip
gitbook-1ff7e88cea6b33cb403ce9cc0450a0a326fb1998.tar.gz
gitbook-1ff7e88cea6b33cb403ce9cc0450a0a326fb1998.tar.bz2
Focs and reset scroll on page body
Diffstat (limited to 'theme/javascript/core')
-rwxr-xr-xtheme/javascript/core/navigation.js6
1 files changed, 6 insertions, 0 deletions
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) {