Commit 1050a05ca8c6373f0b7d2ae08e452f2ec5c6c8da
1 parent
60c29dfa
added tick image on correct
Showing
1 changed file
with
7 additions
and
7 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js
... | ... | @@ -410,11 +410,11 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, |
410 | 410 | for (var i = 0; i <= $scope.usersCorrectQuestData.length - 1; i++) { |
411 | 411 | if (j == $scope.usersCorrectQuestData[i].QuestionNo) { |
412 | 412 | if ($scope.usersCorrectQuestData[i].CorrectStatus == "Correct") { |
413 | - var labExerciseHtml = $("#resultLabData").append("<tr><td>" + $scope.usersCorrectQuestData[i].QuestionNo + "</td><td>" + $scope.usersCorrectQuestData[i].title + "</td><td>" + $scope.usersCorrectQuestData[i].CorrectStatus + "</td><td><button ng-click='reviewAttemptAnswer($event);' id=" + $scope.usersCorrectQuestData[i].QuestionNo + " class='btn btn-sm' style='background-color:#007ab3;border-color:#007ab3;color:#ffffff;'><i class='fa fa-times'></i> Review</button></td></tr>"); | |
413 | + var labExerciseHtml = $("#resultLabData").append("<tr><td>" + $scope.usersCorrectQuestData[i].QuestionNo + "</td><td>" + $scope.usersCorrectQuestData[i].title + "</td><td>" + $scope.usersCorrectQuestData[i].CorrectStatus + "</td><td><button ng-click='reviewAttemptAnswer($event);' id=" + $scope.usersCorrectQuestData[i].QuestionNo + " class='btn btn-sm' style='background-color:#007ab3;border-color:#007ab3;color:#ffffff;'> Review</button></td></tr>"); | |
414 | 414 | $compile(labExerciseHtml)($scope); |
415 | 415 | } |
416 | 416 | else { |
417 | - var labExerciseHtml = $("#resultLabData").append("<tr><td>" + $scope.usersCorrectQuestData[i].QuestionNo + "</td><td>" + $scope.usersCorrectQuestData[i].title + "</td><td>" + $scope.usersCorrectQuestData[i].CorrectStatus + "</td><td><button ng-click='reviewAttemptAnswer($event);' id=" + $scope.usersCorrectQuestData[i].QuestionNo + " class='btn btn-sm' style='background-color:#d9534f;border-color:#d9534f;color:#ffffff;'><i class='fa fa-times'></i> Review</button></td></tr>"); | |
417 | + var labExerciseHtml = $("#resultLabData").append("<tr><td>" + $scope.usersCorrectQuestData[i].QuestionNo + "</td><td>" + $scope.usersCorrectQuestData[i].title + "</td><td>" + $scope.usersCorrectQuestData[i].CorrectStatus + "</td><td><button ng-click='reviewAttemptAnswer($event);' id=" + $scope.usersCorrectQuestData[i].QuestionNo + " class='btn btn-sm' style='background-color:#d9534f;border-color:#d9534f;color:#ffffff;'> Review</button></td></tr>"); | |
418 | 418 | $compile(labExerciseHtml)($scope); |
419 | 419 | } |
420 | 420 | $scope.isValueExist = true; |
... | ... | @@ -435,7 +435,7 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, |
435 | 435 | if (j == $(this).text()) { |
436 | 436 | $q = $(this).parent(); |
437 | 437 | if ($q.find("td:nth-child(3)").text() == "Correct") { |
438 | - sortedQuestionHtml += '<tr><td>' + $q.find("td:nth-child(1)").text() + '</td><td>' + $q.find("td:nth-child(2)").text() + '</td><td>' + $q.find("td:nth-child(3)").text() + '</td><td><button ng-click="reviewAttemptAnswer($event);" id=' + $q.find("td:nth-child(1)").text() + ' class="btn btn-sm" style="background-color:#007ab3;border-color:#007ab3;color:#ffffff;"><i class="fa fa-times"></i> Review</button></td></tr>'; | |
438 | + sortedQuestionHtml += '<tr><td>' + $q.find("td:nth-child(1)").text() + '</td><td>' + $q.find("td:nth-child(2)").text() + '</td><td>' + $q.find("td:nth-child(3)").text() + '</td><td><button ng-click="reviewAttemptAnswer($event);" id=' + $q.find("td:nth-child(1)").text() + ' class="btn btn-sm" style="background-color:#007ab3;border-color:#007ab3;color:#ffffff;"><i class="fa fa-check-circle"></i> Review</button></td></tr>'; | |
439 | 439 | } |
440 | 440 | else { |
441 | 441 | sortedQuestionHtml += '<tr><td>' + $q.find("td:nth-child(1)").text() + '</td><td>' + $q.find("td:nth-child(2)").text() + '</td><td>' + $q.find("td:nth-child(3)").text() + '</td><td><button ng-click="reviewAttemptAnswer($event);" id=' + $q.find("td:nth-child(1)").text() + ' class="btn btn-sm" style="background-color:#d9534f;border-color:#d9534f;color:#ffffff;"><i class="fa fa-times"></i> Review</button></td></tr>'; |
... | ... | @@ -465,10 +465,10 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, |
465 | 465 | if ($(this).text().length == 1) { |
466 | 466 | var a = parseInt($(this).prev().text()) - 1; |
467 | 467 | $(this).text($scope.labExerciseModuleData[0].Questions[a].activityTitle); |
468 | - if ($(this).next().text() == "Correct") { $(this).next().text("Correct"); } | |
469 | - else { | |
470 | - $(this).next().text("Incorrect"); | |
471 | - } | |
468 | + //if ($(this).next().text() == "Correct") { $(this).next().text("Correct"); } | |
469 | + //else { | |
470 | + // $(this).next().text("Incorrect"); | |
471 | + //} | |
472 | 472 | } |
473 | 473 | }); |
474 | 474 | } | ... | ... |