diff options
Diffstat (limited to 'theme/javascript/core/navigation.js')
-rwxr-xr-x | theme/javascript/core/navigation.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/theme/javascript/core/navigation.js b/theme/javascript/core/navigation.js index 9f7f528..84445b4 100755 --- a/theme/javascript/core/navigation.js +++ b/theme/javascript/core/navigation.js @@ -38,10 +38,14 @@ define([ }); $("head").html(headContent); - // Update header, body and summary + // Update header, body $('.book-header').html($page.find('.book-header').html()); $('.book-body').html($page.find('.book-body').html()); + + // Update summary + var scrollPosition = $('.book-summary .summary').scrollTop(); $('.book-summary').html($page.find('.book-summary').html()); + $('.book-summary .summary').scrollTop(scrollPosition); // Update state state.update($page); |