summaryrefslogtreecommitdiffstats
path: root/theme/javascript/core/navigation.js
diff options
context:
space:
mode:
Diffstat (limited to 'theme/javascript/core/navigation.js')
-rwxr-xr-xtheme/javascript/core/navigation.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/theme/javascript/core/navigation.js b/theme/javascript/core/navigation.js
index c1018e0..bcf7e65 100755
--- a/theme/javascript/core/navigation.js
+++ b/theme/javascript/core/navigation.js
@@ -6,8 +6,9 @@ define([
"core/progress",
"core/exercise",
"core/quiz",
- "core/loading"
-], function($, URL, events, state, progress, exercises, quiz, loading) {
+ "core/loading",
+ "core/search"
+], function($, URL, events, state, progress, exercises, quiz, loading, search) {
var prev, next;
var usePushState = (typeof history.pushState !== "undefined");
@@ -55,6 +56,8 @@ define([
// Update state
state.update($("html"));
+ // recover search keyword
+ search.recover();
preparePage();
})
.fail(function (e) {
@@ -146,4 +149,5 @@ define([
goNext: goNext,
goPrev: goPrev
};
-}); \ No newline at end of file
+});
+