Commit 1b7ae4625e546d4e40df1f6691750727f41c088e

Authored by Mukul Rajput
1 parent 2c208565

this is solution for current Structure Highlight on DA

400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
@@ -113,7 +113,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l @@ -113,7 +113,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
113 $scope.IsSearchVisible = false; 113 $scope.IsSearchVisible = false;
114 $scope.shapesize = 1; 114 $scope.shapesize = 1;
115 115
116 - 116 + $scope.CurrentStructure = "active";
117 //array for bodyviewid correspoing to male female(used for gender change) 117 //array for bodyviewid correspoing to male female(used for gender change)
118 $scope.correspondingBodyViewIds = { 118 $scope.correspondingBodyViewIds = {
119 '1': '5', 119 '1': '5',
@@ -8422,8 +8422,22 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l @@ -8422,8 +8422,22 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
8422 } 8422 }
8423 8423
8424 $scope.removeBodySyetemSelectionClass = function (title_highlightbody) { 8424 $scope.removeBodySyetemSelectionClass = function (title_highlightbody) {
8425 -  
8426 - if (title_highlightbody == "Cardiovascular") { 8425 + if (title_highlightbody == "CurrentStructure") {
  8426 + $scope.CurrentStructure = "active";
  8427 + $scope.Cardiovascular = "";
  8428 + $scope.Digestive = "";
  8429 + $scope.Endocrine = "";
  8430 + $scope.Immune = "";
  8431 + $scope.Integumentary = "";
  8432 + $scope.Lymphatic = "";
  8433 + $scope.Muscular = "";
  8434 + $scope.Nervous = "";
  8435 + $scope.Reproductive = "";
  8436 + $scope.Respiratory = "";
  8437 + $scope.Skeletal = "";
  8438 + $scope.Urinary = "";
  8439 + }
  8440 + else if (title_highlightbody == "Cardiovascular") {
8427 $scope.CurrentStructure = ""; 8441 $scope.CurrentStructure = "";
8428 $scope.Cardiovascular = "active"; 8442 $scope.Cardiovascular = "active";
8429 $scope.Digestive = ""; 8443 $scope.Digestive = "";
400-SOURCECODE/AIAHTML5.Web/app/views/da/da-view.html
@@ -168,7 +168,10 @@ @@ -168,7 +168,10 @@
168 <div class="custom-tooltip">Highlight Options</div> 168 <div class="custom-tooltip">Highlight Options</div>
169 <button class="btn btn-black btn-sm pull-right marginTop5 dropdown-toggle" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" ng-click="LoadBodySystemData()"><img src="content/images/icon-highlight.png" alt="" title=""></button> 169 <button class="btn btn-black btn-sm pull-right marginTop5 dropdown-toggle" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" ng-click="LoadBodySystemData()"><img src="content/images/icon-highlight.png" alt="" title=""></button>
170 <ul class="dropdown-menu" aria-labelledby="dropdownMenu2"> 170 <ul class="dropdown-menu" aria-labelledby="dropdownMenu2">
171 - <li ng-class="CurrentStructure"><a href="#" title="Current Structure">Current Structure</a></li> 171 + <li ng-class="CurrentStructure" ><a href="#" title="Current Structure"
  172 + ng-click="removeBodySyetemSelectionClass('CurrentStructure')">Current Structure</a></li>
  173 +
  174 +
172 <li role="separator" class="divider"></li> 175 <li role="separator" class="divider"></li>
173 <!--<li ng-class="Cardiovascular"><a href="#" title="Cardiovascular" id="1" ng-click="HighlightBodyByBodySystem($event)">Cardiovascular</a></li> 176 <!--<li ng-class="Cardiovascular"><a href="#" title="Cardiovascular" id="1" ng-click="HighlightBodyByBodySystem($event)">Cardiovascular</a></li>
174 <li ng-class="Digestive"><a href="#" title="Digestive" id="2" ng-click="HighlightBodyByBodySystem($event)">Digestive</a></li> 177 <li ng-class="Digestive"><a href="#" title="Digestive" id="2" ng-click="HighlightBodyByBodySystem($event)">Digestive</a></li>