From c22be0ebb28d1aad633fef6d4e3fd8174baf0f8a Mon Sep 17 00:00:00 2001 From: nikita Date: Fri, 16 Mar 2018 12:41:58 +0530 Subject: [PATCH] in saved question the duplicate options appear in dropbox and also in answer options-fixed --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js index c22a45f..6d81b4a 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js @@ -1067,8 +1067,11 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, for (var j = 0; j < blocks.length; j++) { if ((blocks[j].innerHTML).toString() == lastQuestionAnswers[i]) { - $('#' + blocks[j].id).css("display", "none"); - break; + if ($('#' + blocks[j].id).css('display').toLowerCase() == 'block') { + $('#' + blocks[j].id).css("display", "none"); + break; + } + }; } -- libgit2 0.21.4