Commit b6e51d1c604bd71581a1b8cbf9bd7c50cb7dc8b8

Authored by Nikita Kulshreshtha
1 parent d01420a1

in some case report was incorrect.

400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js
... ... @@ -913,17 +913,21 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter,
913 913 $scope.usersCorrectQuestData = [];
914 914 $scope.CreateLabExerciseDataToSave = function () {
915 915  
916   - if ($scope.UserAttempt.length == 0) {
917   - $("#imgdiv").find("div").each(function () {
918   - if ($(this).attr("id").split("-")[0] == "blockans") {
919   - $scope.UserAttempt.push({ "BlankBoxName": $(this).attr("id").split("-")[1], "OptionName": $(this).attr("draggedattr").split("-")[1] });
920   - }
921   - });
922   - }
923   -
924   - // console.log($scope.SavedLabExercise);
925   - // console.log($scope.usersCorrectQuestData);
926   - // console.log($scope.LabExerciseUserData);
  916 + //if ($scope.UserAttempt.length == 0) {
  917 + // $("#imgdiv").find("div").each(function () {
  918 + // if ($(this).attr("id").split("-")[0] == "blockans") {
  919 + // $scope.UserAttempt.push({ "BlankBoxName": $(this).attr("id").split("-")[1], "OptionName": $(this).attr("draggedattr").split("-")[1] });
  920 + // }
  921 + // });
  922 + //}
  923 + $scope.UserAttempt = [];
  924 + //if ($scope.UserAttempt.length == 0) {
  925 + $("#imgdiv").find("div").each(function () {
  926 + if ($(this).attr("id").split("-")[0] == "blockans") {
  927 + $scope.UserAttempt.push({ "BlankBoxName": $(this).attr("id").split("-")[1], "OptionName": $(this).attr("draggedattr").split("-")[1] });
  928 + }
  929 + });
  930 +
927 931 $scope.LabExerciseAttemptedData = [];
928 932 $scope.lb = [];
929 933 //get user answers
... ...