From 920c00e094edc3ded0c9692f6af235784dd3eab2 Mon Sep 17 00:00:00 2001 From: nikita Date: Wed, 13 Dec 2017 18:31:24 +0530 Subject: [PATCH] treid a solution --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js index 1f3aa3c..dcf92ce 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js @@ -8012,8 +8012,18 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l else if ($rootScope.previousHighlightList != null && $rootScope.previousHighlightList.length > 0 && ($rootScope.isGenderChnage == true || $rootScope.isViewChange == true)) { - $rootScope.isHighLight = true - $scope.setLayerNumberAndHighlightByTermList(); + $rootScope.isHighLight = true; + if ($rootScope.TermNumberData != undefined && $rootScope.TermNumberData.length > 0) { + $scope.TermList = $scope.getTermNumberList($rootScope.actualTermNumber); + if ($scope.TermList != null) { + $scope.setLayerNumberAndHighlightByTermList(); + } + else { + //actual term number is not found in thsi view menas previously selected body part does not exist in this view + $scope.EnableUI(); + } + } + } else { -- libgit2 0.21.4