diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js
index 05c5626..4c2d6ed 100644
--- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js
+++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js
@@ -521,45 +521,46 @@ function ($scope, $rootScope, pages, log, $http,$timeout, DataService, $filter,
)
}
else {
-
- var labExerciseModulePath = '~/../content/data/json/le/' + keywords.labexercise + '.json';
- DataService.getAnotherJson(labExerciseModulePath).then(
- function (result) {
- $.each(result.LabExercise, function (index, value) {
- if (result.LabExercise[index].Slug == keywords.labexercise) {
- $.each(result.LabExercise[index].Questions, function (index1, value1) {
- if (result.LabExercise[index].Questions[index1].Number == $scope.quiznumber) {
- var Options = result.LabExercise[index].Questions[index1].OptionBox;
- $.each(Options, function (inx, value2) {
- if (Options[inx].BoxName == id.split('-')[1]) {
- if ($scope.DraggedList != null) {
- $.each($scope.DraggedList, function (inx1, value3) {
-
- if ($scope.DraggedList[inx1].Value == dataText) {
- $scope.DraggedList.splice(inx1, 1);
- }
- });
- }
+ if ($(this).css('background-color') == 'rgb(232, 232, 232)') {
+ var labExerciseModulePath = '~/../content/data/json/le/' + keywords.labexercise + '.json';
+ DataService.getAnotherJson(labExerciseModulePath).then(
+ function (result) {
+ $.each(result.LabExercise, function (index, value) {
+ if (result.LabExercise[index].Slug == keywords.labexercise) {
+ $.each(result.LabExercise[index].Questions, function (index1, value1) {
+ if (result.LabExercise[index].Questions[index1].Number == $scope.quiznumber) {
+ var Options = result.LabExercise[index].Questions[index1].OptionBox;
+ $.each(Options, function (inx, value2) {
+ if (Options[inx].BoxName == id.split('-')[1]) {
+ if ($scope.DraggedList != null) {
+ $.each($scope.DraggedList, function (inx1, value3) {
+
+ if ($scope.DraggedList[inx1].Value == dataText) {
+ $scope.DraggedList.splice(inx1, 1);
+ }
+ });
+ }
// $scope.UserAttempt.push({ "BlankBoxName": id.split('-')[1], "OptionName": $scope.dragableId.split('-')[1] });
//$scope.UserAttempt.push({ balnkBox: +$scope.dragableId.split('-')[1] });
$scope.UserAttempt.push({ "BlankBoxName": id.split('-')[1], "OptionName": $scope.dragableId.split('-')[1] });
- $scope.DraggedList.push({ "id": id.split('-')[1], "optionName": id.split('-')[1], "Value": dataText, "topcoord": Options[inx].topcoord, "leftcoord": Options[inx].leftcoord });
- $('#' + $scope.dragableId).css("display", "none");
- $('#blockans-' + Options[inx].OptionNumber).css("background-color", "transparent !important");
+ $scope.DraggedList.push({ "id": id.split('-')[1], "optionName": id.split('-')[1], "Value": dataText, "topcoord": Options[inx].topcoord, "leftcoord": Options[inx].leftcoord });
+ $('#' + $scope.dragableId).css("display", "none");
+ $('#blockans-' + Options[inx].OptionNumber).css("background-color", "transparent !important");
- }
- });
- }
- });
- }
+ }
+ });
+ }
+ });
+ }
- });
+ });
- },
- function (error) {
- console.log(error.statusText)
+ },
+ function (error) {
+ console.log(error.statusText)
+ }
+ )
}
- )
}
$scope.$apply();