* Fix tutorial bug
This commit is contained in:
@@ -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 + '%');
|
||||
|
||||
Reference in New Issue
Block a user