Mark chapter as read after the page is viewed

This commit is contained in:
Samy Pessé
2014-04-01 18:42:43 -07:00
parent 466ceb581c
commit d313589736
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -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 {
+1 -1
View File
File diff suppressed because one or more lines are too long