summaryrefslogtreecommitdiffstats
path: root/assets/javascript/core/progress.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/javascript/core/progress.js')
-rw-r--r--assets/javascript/core/progress.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/assets/javascript/core/progress.js b/assets/javascript/core/progress.js
index bd657a1..755f111 100644
--- a/assets/javascript/core/progress.js
+++ b/assets/javascript/core/progress.js
@@ -43,10 +43,7 @@ define([
};
// Show progress
- var showProgress = function() {
- // Mark current progress
- markProgress(getCurrentLevel(), true);
-
+ var showProgress = function() {
// Update progress
var progress = getProgress();
var $summary = $(".book-summary");
@@ -54,6 +51,9 @@ define([
_.each(progress, function(value, level) {
$summary.find("li[data-level='"+level+"']").toggleClass("done", value > 0);
});
+
+ // Mark current progress
+ markProgress(getCurrentLevel(), true);
};
return {