diff options
Diffstat (limited to 'theme/javascript/core/navigation.js')
-rwxr-xr-x | theme/javascript/core/navigation.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/theme/javascript/core/navigation.js b/theme/javascript/core/navigation.js index d8dc8b9..e614392 100755 --- a/theme/javascript/core/navigation.js +++ b/theme/javascript/core/navigation.js @@ -6,8 +6,9 @@ define([ "core/search", "core/progress", "core/exercise", - "core/quiz" -], function($, path, events, state, search, progress, exercises, quiz) { + "core/quiz", + "core/loading" +], function($, path, events, state, search, progress, exercises, quiz, loading) { var prev, next; var githubCountStars, githubCountWatch; @@ -23,7 +24,7 @@ define([ return } - return $.get(url) + return loading.show($.get(url) .done(function (html) { // Push url to history if (push) history.pushState({ path: url }, null, url); @@ -59,7 +60,7 @@ define([ }) .fail(function (e) { location.href = relativeUrl; - }); + })); }; var updateGitHubCounts = function() { |