diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js
index 1831c0f..0eefde6 100644
--- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js
+++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js
@@ -229,44 +229,45 @@ function ($scope, $rootScope, pages, log, $http, DataService, $filter, $location
)
}
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.DraggedList.push({ "id": id.split('-')[1], "optionName": id.split('-')[1], "Value": dataText, "topcoord": Options[inx].topcoord, "leftcoord": Options[inx].leftcoord });
+ //$('#' + $scope.dragableId).remove();
+ $('#' + $scope.dragableId).css("display", "none");
+ $('#blockans-' + Options[inx].OptionNumber).css("background-color", "transparent !important");
+ //$('#' + id).remove();
}
+ });
+ }
+ });
+ }
- $scope.DraggedList.push({ "id": id.split('-')[1], "optionName": id.split('-')[1], "Value": dataText, "topcoord": Options[inx].topcoord, "leftcoord": Options[inx].leftcoord });
- //$('#' + $scope.dragableId).remove();
- $('#' + $scope.dragableId).css("display", "none");
- $('#blockans-' + Options[inx].OptionNumber).css("background-color", "transparent !important");
- //$('#' + id).remove();
- }
- });
- }
- });
- }
-
- });
+ });
- },
- function (error) {
- console.log(error.statusText)
+ },
+ function (error) {
+ console.log(error.statusText)
+ }
+ )
}
- )
}
$scope.$apply();
//alert($("#divoptions").css("display") + "," + $("#divoptions").html());