From 1050a05ca8c6373f0b7d2ae08e452f2ec5c6c8da Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 19 Sep 2018 12:24:12 +0530 Subject: [PATCH] added tick image on correct --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js index c418828..cc84f22 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js @@ -410,11 +410,11 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, for (var i = 0; i <= $scope.usersCorrectQuestData.length - 1; i++) { if (j == $scope.usersCorrectQuestData[i].QuestionNo) { if ($scope.usersCorrectQuestData[i].CorrectStatus == "Correct") { - var labExerciseHtml = $("#resultLabData").append("" + $scope.usersCorrectQuestData[i].QuestionNo + "" + $scope.usersCorrectQuestData[i].title + "" + $scope.usersCorrectQuestData[i].CorrectStatus + ""); + var labExerciseHtml = $("#resultLabData").append("" + $scope.usersCorrectQuestData[i].QuestionNo + "" + $scope.usersCorrectQuestData[i].title + "" + $scope.usersCorrectQuestData[i].CorrectStatus + ""); $compile(labExerciseHtml)($scope); } else { - var labExerciseHtml = $("#resultLabData").append("" + $scope.usersCorrectQuestData[i].QuestionNo + "" + $scope.usersCorrectQuestData[i].title + "" + $scope.usersCorrectQuestData[i].CorrectStatus + ""); + var labExerciseHtml = $("#resultLabData").append("" + $scope.usersCorrectQuestData[i].QuestionNo + "" + $scope.usersCorrectQuestData[i].title + "" + $scope.usersCorrectQuestData[i].CorrectStatus + ""); $compile(labExerciseHtml)($scope); } $scope.isValueExist = true; @@ -435,7 +435,7 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, if (j == $(this).text()) { $q = $(this).parent(); if ($q.find("td:nth-child(3)").text() == "Correct") { - sortedQuestionHtml += '' + $q.find("td:nth-child(1)").text() + '' + $q.find("td:nth-child(2)").text() + '' + $q.find("td:nth-child(3)").text() + ''; + sortedQuestionHtml += '' + $q.find("td:nth-child(1)").text() + '' + $q.find("td:nth-child(2)").text() + '' + $q.find("td:nth-child(3)").text() + ''; } else { sortedQuestionHtml += '' + $q.find("td:nth-child(1)").text() + '' + $q.find("td:nth-child(2)").text() + '' + $q.find("td:nth-child(3)").text() + ''; @@ -465,10 +465,10 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, if ($(this).text().length == 1) { var a = parseInt($(this).prev().text()) - 1; $(this).text($scope.labExerciseModuleData[0].Questions[a].activityTitle); - if ($(this).next().text() == "Correct") { $(this).next().text("Correct"); } - else { - $(this).next().text("Incorrect"); - } + //if ($(this).next().text() == "Correct") { $(this).next().text("Correct"); } + //else { + // $(this).next().text("Incorrect"); + //} } }); } -- libgit2 0.21.4