diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-04-14 20:15:04 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-04-14 20:15:04 +0200 |
commit | 28257e1ce7d66e7c2ef47b7f0e200bad7f0e5803 (patch) | |
tree | d52ce166d0e29c687731e78982978732f3c90b9c /theme/javascript/core/navigation.js | |
parent | 24d8e15ee24f2deef2d37fe731a1bae67faac65a (diff) | |
download | gitbook-28257e1ce7d66e7c2ef47b7f0e200bad7f0e5803.zip gitbook-28257e1ce7d66e7c2ef47b7f0e200bad7f0e5803.tar.gz gitbook-28257e1ce7d66e7c2ef47b7f0e200bad7f0e5803.tar.bz2 |
Fix search with pusState navigation
Diffstat (limited to 'theme/javascript/core/navigation.js')
-rwxr-xr-x | theme/javascript/core/navigation.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/theme/javascript/core/navigation.js b/theme/javascript/core/navigation.js index cfc55d1..3136fb5 100755 --- a/theme/javascript/core/navigation.js +++ b/theme/javascript/core/navigation.js @@ -1,10 +1,11 @@ define([ "jQuery", "core/state", + "core/search", "core/progress", "core/exercise", "core/quiz" -], function($, state, progress, exercises, quiz) { +], function($, state, search, progress, exercises, quiz) { var prev, next; var githubCountStars, githubCountWatch; @@ -64,7 +65,7 @@ define([ var preparePage = function() { var $pageWrapper = $(".book-body .page-wrapper"); - + // Bind exercises/quiz exercises.init(); quiz.init(); @@ -81,6 +82,9 @@ define([ // Focus on content $pageWrapper.focus(); + // Prepare search bar + search.prepare(); + // Update GitHub count if (state.githubId) { if (githubCountStars) { |