* Fix tutorial score bug
This commit is contained in:
@@ -440,15 +440,12 @@ $(function()
|
||||
|
||||
$('.task-num-finish').text(finishCount);
|
||||
var isFinishAll = finishCount >= totalCount;
|
||||
if(isFinishAll)
|
||||
{
|
||||
$.getJSON(createLink('tutorial', 'ajaxFinish'));
|
||||
current = $tasks.children('li').first().data('name');
|
||||
}
|
||||
if(isFinishAll) 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 + '%');
|
||||
|
||||
if(progress == 100) $.getJSON(createLink('tutorial', 'ajaxFinish'));
|
||||
showTask(current);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user