* Fix tutorial bug

This commit is contained in:
滔哥
2017-11-06 17:49:12 +08:00
parent 35a179f00f
commit e294367e46
2 changed files with 17 additions and 3 deletions

View File

@@ -440,8 +440,11 @@ $(function()
$('.task-num-finish').text(finishCount);
var isFinishAll = finishCount >= totalCount;
if(isFinishAll) current = $tasks.children('li').first().data('name');
if(isFinishAll)
{
$.getJSON(createLink('tutorial', 'ajaxFinish'));
current = $tasks.children('li').first().data('name');
}
var progress = Math.round(100*finishCount/totalCount);
$progress.toggleClass('finish', isFinishAll).find('.progress-bar').css('width', (100*finishCount/totalCount) + '%');
$progress.find('.progress-text').text(progress + '%');