diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-04-14 12:43:45 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-04-14 12:43:45 +0200 |
commit | 8c02e949fcbeb7b0200a4ffc67a809b66c39038e (patch) | |
tree | 6c4cb04ca5f58a7051fc104080285b1ea8fc380e /theme/javascript/app.js | |
parent | 56e1803b3414be5b27905d6480e127989cb73ead (diff) | |
download | gitbook-8c02e949fcbeb7b0200a4ffc67a809b66c39038e.zip gitbook-8c02e949fcbeb7b0200a4ffc67a809b66c39038e.tar.gz gitbook-8c02e949fcbeb7b0200a4ffc67a809b66c39038e.tar.bz2 |
Fix exercises binding when page changed
Add base binding for quiz
Diffstat (limited to 'theme/javascript/app.js')
-rwxr-xr-x | theme/javascript/app.js | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/theme/javascript/app.js b/theme/javascript/app.js index 20dfcd7..53d8196 100755 --- a/theme/javascript/app.js +++ b/theme/javascript/app.js @@ -6,11 +6,11 @@ require([ "core/state", "core/keyboard", - "core/exercise", + "core/navigation", "core/progress", "core/sidebar", "core/search" -], function($, storage, analytic, sharing, state, keyboard, exercise, progress, sidebar, search){ +], function($, storage, analytic, sharing, state, keyboard, navigation, progress, sidebar, search){ $(document).ready(function() { var $book = state.$book; @@ -35,14 +35,11 @@ require([ // Init keyboard keyboard.init(); - // Bind exercise - exercise.init(); - // Bind sharing button sharing.init(); - // Show progress - progress.show(); + // Init navigation + navigation.init(); // Focus on content $(".book-body").focus(); |