From 6a48745fcbbf7f732a1aa7795a516e56ad6d2b2f Mon Sep 17 00:00:00 2001 From: Catouse Date: Mon, 25 Apr 2016 16:28:28 +0800 Subject: [PATCH] * fix percent calculate method. --- module/tutorial/view/index.html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/tutorial/view/index.html.php b/module/tutorial/view/index.html.php index b0bfb2c04b..221ed55f31 100644 --- a/module/tutorial/view/index.html.php +++ b/module/tutorial/view/index.html.php @@ -435,7 +435,7 @@ $(function() var isFinishAll = finishCount >= totalCount; if(isFinishAll) current = $tasks.children('li').first().data('name'); - var progress = Math.round(finishCount/totalCount); + 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 + '%');