Commit c22be0ebb28d1aad633fef6d4e3fd8174baf0f8a

Authored by Nikita Kulshreshtha
1 parent 1de6f5f9

in saved question the duplicate options appear in dropbox and also in answer options-fixed

400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js
@@ -1067,8 +1067,11 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, @@ -1067,8 +1067,11 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter,
1067 for (var j = 0; j < blocks.length; j++) { 1067 for (var j = 0; j < blocks.length; j++) {
1068 1068
1069 if ((blocks[j].innerHTML).toString() == lastQuestionAnswers[i]) { 1069 if ((blocks[j].innerHTML).toString() == lastQuestionAnswers[i]) {
1070 - $('#' + blocks[j].id).css("display", "none");  
1071 - break; 1070 + if ($('#' + blocks[j].id).css('display').toLowerCase() == 'block') {
  1071 + $('#' + blocks[j].id).css("display", "none");
  1072 + break;
  1073 + }
  1074 +
1072 }; 1075 };
1073 1076
1074 } 1077 }