Commit f1564423284882e296cf08ba367b79f55d270354
1 parent
bb85654e
when user seracg anything then change view and then select any systemfrom highli…
…ght options, its highlighted the system. Made layerNumber by default 0 on gender change as per live.
Showing
1 changed file
with
58 additions
and
30 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... | ... | @@ -5060,36 +5060,10 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
5060 | 5060 | //2. |
5061 | 5061 | $scope.terminateCurrentlyRunningWPs(); |
5062 | 5062 | |
5063 | - //3. | |
5064 | - //if extarct is alraedy enabled and user cliked on any body part then extract that. | |
5065 | - if (isCalledFromButton == false) { | |
5066 | - | |
5067 | - $rootScope.isExtract = true; | |
5068 | - //disable transparency button | |
5069 | - | |
5070 | - $("#btnTranparency").addClass("disabled"); | |
5071 | - | |
5072 | - | |
5073 | - if ($rootScope.isNormalMode == true) { | |
5074 | - | |
5075 | - $rootScope.isHighLight = false; | |
5076 | - $rootScope.isNormalMode = false; | |
5077 | - } | |
5078 | - else { | |
5079 | - | |
5080 | - $rootScope.isHighLight = false; | |
5081 | - } | |
5082 | - | |
5083 | - //4. | |
5084 | - console.log('highLightBody from enableExtract') | |
5085 | - $scope.highLightBody(); | |
5086 | - | |
5087 | - } | |
5088 | - else { | |
5089 | - if ($rootScope.isExtract == true) { | |
5063 | + //3. | |
5064 | + //if extarct is alraedy enabled and user cliked on any body part then extract that. | |
5065 | + if (isCalledFromButton == false) { | |
5090 | 5066 | |
5091 | - } | |
5092 | - else { | |
5093 | 5067 | $rootScope.isExtract = true; |
5094 | 5068 | //disable transparency button |
5095 | 5069 | |
... | ... | @@ -5110,9 +5084,37 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
5110 | 5084 | console.log('highLightBody from enableExtract') |
5111 | 5085 | $scope.highLightBody(); |
5112 | 5086 | |
5087 | + } | |
5088 | + else { | |
5089 | + | |
5090 | + if ($rootScope.isExtract == true) { | |
5113 | 5091 | |
5092 | + } | |
5093 | + else { | |
5094 | + $rootScope.isExtract = true; | |
5095 | + //disable transparency button | |
5096 | + | |
5097 | + $("#btnTranparency").addClass("disabled"); | |
5098 | + | |
5099 | + | |
5100 | + if ($rootScope.isNormalMode == true) { | |
5101 | + | |
5102 | + $rootScope.isHighLight = false; | |
5103 | + $rootScope.isNormalMode = false; | |
5104 | + } | |
5105 | + else { | |
5106 | + | |
5107 | + $rootScope.isHighLight = false; | |
5108 | + } | |
5109 | + | |
5110 | + //4. | |
5111 | + console.log('highLightBody from enableExtract') | |
5112 | + $scope.highLightBody(); | |
5113 | + | |
5114 | + | |
5115 | + } | |
5114 | 5116 | } |
5115 | - } | |
5117 | + | |
5116 | 5118 | |
5117 | 5119 | //5. unhighlight other |
5118 | 5120 | //$scope.Normal = ""; |
... | ... | @@ -5626,6 +5628,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
5626 | 5628 | localStorage.setItem("currentBodyViewId", currentBodyViewId); |
5627 | 5629 | |
5628 | 5630 | //3. |
5631 | + $scope.layerNumber = 0; | |
5629 | 5632 | $scope.loadSelectedBodyView(currentBodyViewId); |
5630 | 5633 | |
5631 | 5634 | //4. |
... | ... | @@ -5653,6 +5656,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
5653 | 5656 | localStorage.setItem("currentBodyViewId", currentBodyViewId); |
5654 | 5657 | |
5655 | 5658 | //3. |
5659 | + $scope.layerNumber = 0; | |
5656 | 5660 | $scope.loadSelectedBodyView(currentBodyViewId); |
5657 | 5661 | |
5658 | 5662 | //4. |
... | ... | @@ -7062,7 +7066,31 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
7062 | 7066 | console.log('highLightBody from HighlightBodyByBodySystem') |
7063 | 7067 | $scope.highLightBody(); |
7064 | 7068 | } |
7069 | + else { | |
7070 | + //This else is when user seraced anything then change the view and clicked on highlight options | |
7071 | + //in this case body is already highlihted(gray) so no need to | |
7072 | + if ($scope.grayedBR != null || $scope.grayedBR != undefined) { | |
7073 | + if ((($rootScope.viewOrientationId == '1') || ($rootScope.viewOrientationId == '4')) && ($scope.grayedBR.length == 9)) { | |
7074 | + $scope.isAlreadyHighlighted = true; | |
7075 | + } | |
7076 | + else if ((($rootScope.viewOrientationId == '2') || ($rootScope.viewOrientationId == '3')) && ($scope.grayedBR.length == 5)) { | |
7077 | + $scope.isAlreadyHighlighted = true; | |
7078 | + } | |
7079 | + else if ((($rootScope.viewOrientationId == '5')) && ($scope.grayedBR.length == 4)) { | |
7080 | + $scope.isAlreadyHighlighted = true; | |
7081 | + } | |
7082 | + else if ((($rootScope.viewOrientationId == '6')) && ($scope.grayedBR.length == 1)) { | |
7083 | + $scope.isAlreadyHighlighted = true; | |
7084 | + } | |
7085 | + if (($scope.isAlreadyHighlighted == true && $rootScope.isHighlightBodyByBodySystem == true) && ($scope.systemMatchedTermList != null || $scope.systemMatchedTermList != undefined && $scope.systemMatchedTermList.length > 0)) { | |
7086 | + | |
7087 | + $scope.isLoading = true; | |
7065 | 7088 | |
7089 | + $('#spinner').css('visibility', 'visible'); | |
7090 | + $timeout(function () { $scope.HighlightBodyByTermList($scope.systemMatchedTermList) }, 100); | |
7091 | + } | |
7092 | + } | |
7093 | + } | |
7066 | 7094 | |
7067 | 7095 | |
7068 | 7096 | //$rootScope.isLoading = true; | ... | ... |