Focs and reset scroll on page body

This commit is contained in:
Samy Pessé
2014-04-14 15:43:11 +02:00
parent c3ba975d6c
commit 1ff7e88cea
3 changed files with 7 additions and 4 deletions
-3
View File
@@ -40,8 +40,5 @@ require([
// Init navigation
navigation.init();
// Focus on content
$(".book-body").focus();
});
});
+6
View File
@@ -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) {