Commit bc58acbecf29af13788c4becd4b32b6e8ee04449
1 parent
46ce109a
score issue fixed
Showing
1 changed file
with
3 additions
and
3 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js
... | ... | @@ -361,7 +361,7 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, |
361 | 361 | |
362 | 362 | |
363 | 363 | $scope.SubmitAttempt = function () { |
364 | - | |
364 | + | |
365 | 365 | $scope.CreateLabExerciseDataToSave(); |
366 | 366 | |
367 | 367 | $("#submitResultHtml").css("display", "block"); |
... | ... | @@ -459,7 +459,7 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, |
459 | 459 | } |
460 | 460 | }); |
461 | 461 | |
462 | - $scope.scoreResult = (parseInt($scope.CorrectAnswer) / parseInt($scope.inCorrectAnswer)) * 100; | |
462 | + $scope.scoreResult = (parseInt($scope.CorrectAnswer) / parseInt($scope.TotalNumberofQuiz)) * 100; | |
463 | 463 | $scope.scoreResult = Math.round($scope.scoreResult); |
464 | 464 | $("#resultLabData tr td:nth-child(2)").each(function (key, value) { |
465 | 465 | if ($(this).text().length == 1) { |
... | ... | @@ -921,7 +921,7 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, |
921 | 921 | |
922 | 922 | $scope.usersCorrectQuestData = []; |
923 | 923 | $scope.CreateLabExerciseDataToSave = function () { |
924 | - | |
924 | + | |
925 | 925 | if ($scope.UserAttempt.length == 0) { |
926 | 926 | $("#imgdiv").find("div").each(function () { |
927 | 927 | if ($(this).attr("id").split("-")[0] == "blockans") { | ... | ... |