diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js index b1d29b8..43d699c 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js @@ -148,6 +148,10 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$filter","$ $scope.currentTitleFromJson; $scope.showTabButton = false; + + + + $scope.IsVisible = function () { $scope.scroll(); @@ -2060,7 +2064,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$filter","$ var canvasDiv = document.getElementById('canvasDiv'); $scope.imageVerticalScrollPosition = canvasDiv.scrollTop; if ($scope.isLayerChange == true) { - $scope.isLayerChange = false; + $scope.isLayerChange = false; } if (evt.ctrlKey) { @@ -3021,7 +3025,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$filter","$ $scope.HighlightBodyByTermListForBodySystem = function (TermList) { - + $scope.isScrolledToHighlightedBR = false; //disable the background till the system gets highlighted. $scope.DisableUI(); @@ -3400,7 +3404,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$filter","$ var annotationText; var annotation = []; //0 - var figLeafTermNo = 5868; // to do declare constant for this + var figLeafTermNo = 5868; if (parseInt(termNumber) != parseInt(figLeafTermNo)) { $scope.TermNumber = termNumber; @@ -4953,8 +4957,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$filter","$ var tranparencyLayer; - var currentLayer = $scope.layerNumberBeforeTBDraw; - + var currentLayer = $scope.layerNumberBeforeTBDraw; if (currentLayer == $rootScope.totalLayers) { tranparencyLayer = currentLayer; @@ -8506,32 +8509,33 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$filter","$ if (($ua.match(/(iPod|iPhone|iPad|android)/i))) { $(".custom-tooltip").toggle(); } + //START BUG#22814 + // Here updating structureDropdown with the mapped values only on the basis of BodyViewID + + var systemNumberByViewID = new jinqJs() + .from($rootScope.BodySystemData.BodySystem.BodySystemTerm) + .distinct('_SystemNumber') + .orderBy([{ field: '_SystemNumber', sort: 'asc' }]) + .select('_SystemNumber'); + + + $('#structureDropdown').html(""); var currentBodyViewId = $rootScope.voId; - var systemListHtml = '
'; - $('#bodySystem').append(systemListHtml); - - - // var bodySystemDataPath = '~/../content/data/json/da/body-views/' + currentBodyViewId + '/da_dat_body_system_term_' + currentBodyViewId + '.json'; - // DataService.getJson(bodySystemDataPath) - //.then( - // function (result) { - - // $rootScope.BodySystemData = result; - - // }, - // function (error) { - // console.log(error.statusText) - // } - // ) + systemListHtml = systemListHtml; + //END BUG#22814 + $('#structureDropdown').append(systemListHtml); } $scope.GetBodySystemData = function (currentBodyViewId) { @@ -9891,7 +9895,7 @@ function OnViewChange(event) { function OnBodySystemSelection(event) { console.log('OnBodySystem chnaged is called outside '); var scope = angular.element(document.getElementById("daView")).scope(); - + scope.$apply(function () { scope.HighlightBodyByBodySystem(event); diff --git a/400-SOURCECODE/AIAHTML5.Web/app/views/da/da-view.html b/400-SOURCECODE/AIAHTML5.Web/app/views/da/da-view.html index 061e354..478fd7e 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/views/da/da-view.html +++ b/400-SOURCECODE/AIAHTML5.Web/app/views/da/da-view.html @@ -169,40 +169,7 @@