Commit ef51a5f71f0c951a6540af01cf9a030252794d57
1 parent
1540fdc5
Refs: #6614
Maintain Highlighted body system
Showing
2 changed files
with
201 additions
and
13 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
@@ -5404,6 +5404,194 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -5404,6 +5404,194 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
5404 | // $timeout(function () { $scope.HighlightBodyByTermList(systemMatchedTermList) }, 100); | 5404 | // $timeout(function () { $scope.HighlightBodyByTermList(systemMatchedTermList) }, 100); |
5405 | //} | 5405 | //} |
5406 | 5406 | ||
5407 | + | ||
5408 | + var viewtarget_highlightbody = angular.element(event.currentTarget); | ||
5409 | + var title_highlightbody = viewtarget_highlightbody.attr('title'); | ||
5410 | + | ||
5411 | + if (title_highlightbody == "Cardiovascular") { | ||
5412 | + $scope.CurrentStructure = ""; | ||
5413 | + $scope.Cardiovascular = "active"; | ||
5414 | + $scope.Digestive = ""; | ||
5415 | + $scope.Endocrine = ""; | ||
5416 | + $scope.Immune = ""; | ||
5417 | + $scope.Integumentary = ""; | ||
5418 | + $scope.Lymphatic = ""; | ||
5419 | + $scope.Muscular = ""; | ||
5420 | + $scope.Nervous = ""; | ||
5421 | + $scope.Reproductive = ""; | ||
5422 | + $scope.Respiratory = ""; | ||
5423 | + $scope.Skeletal = ""; | ||
5424 | + $scope.Urinary = ""; | ||
5425 | + } | ||
5426 | + | ||
5427 | + if (title_highlightbody == "Digestive") { | ||
5428 | + $scope.CurrentStructure = ""; | ||
5429 | + $scope.Cardiovascular = ""; | ||
5430 | + $scope.Digestive = "active"; | ||
5431 | + $scope.Endocrine = ""; | ||
5432 | + $scope.Immune = ""; | ||
5433 | + $scope.Integumentary = ""; | ||
5434 | + $scope.Lymphatic = ""; | ||
5435 | + $scope.Muscular = ""; | ||
5436 | + $scope.Nervous = ""; | ||
5437 | + $scope.Reproductive = ""; | ||
5438 | + $scope.Respiratory = ""; | ||
5439 | + $scope.Skeletal = ""; | ||
5440 | + $scope.Urinary = ""; | ||
5441 | + } | ||
5442 | + | ||
5443 | + if (title_highlightbody == "Endocrine") { | ||
5444 | + $scope.CurrentStructure = ""; | ||
5445 | + $scope.Cardiovascular = ""; | ||
5446 | + $scope.Digestive = ""; | ||
5447 | + $scope.Endocrine = "active"; | ||
5448 | + $scope.Immune = ""; | ||
5449 | + $scope.Integumentary = ""; | ||
5450 | + $scope.Lymphatic = ""; | ||
5451 | + $scope.Muscular = ""; | ||
5452 | + $scope.Nervous = ""; | ||
5453 | + $scope.Reproductive = ""; | ||
5454 | + $scope.Respiratory = ""; | ||
5455 | + $scope.Skeletal = ""; | ||
5456 | + $scope.Urinary = ""; | ||
5457 | + } | ||
5458 | + if (title_highlightbody == "Immune") { | ||
5459 | + | ||
5460 | + $scope.CurrentStructure = ""; | ||
5461 | + $scope.Cardiovascular = ""; | ||
5462 | + $scope.Digestive = ""; | ||
5463 | + $scope.Endocrine = ""; | ||
5464 | + $scope.Immune = "active"; | ||
5465 | + $scope.Integumentary = ""; | ||
5466 | + $scope.Lymphatic = ""; | ||
5467 | + $scope.Muscular = ""; | ||
5468 | + $scope.Nervous = ""; | ||
5469 | + $scope.Reproductive = ""; | ||
5470 | + $scope.Respiratory = ""; | ||
5471 | + $scope.Skeletal = ""; | ||
5472 | + $scope.Urinary = ""; | ||
5473 | + } | ||
5474 | + if (title_highlightbody == "Integumentary") { | ||
5475 | + $scope.CurrentStructure = ""; | ||
5476 | + $scope.Cardiovascular = ""; | ||
5477 | + $scope.Digestive = ""; | ||
5478 | + $scope.Endocrine = ""; | ||
5479 | + $scope.Immune = ""; | ||
5480 | + $scope.Integumentary = "active"; | ||
5481 | + $scope.Lymphatic = ""; | ||
5482 | + $scope.Muscular = ""; | ||
5483 | + $scope.Nervous = ""; | ||
5484 | + $scope.Reproductive = ""; | ||
5485 | + $scope.Respiratory = ""; | ||
5486 | + $scope.Skeletal = ""; | ||
5487 | + $scope.Urinary = ""; | ||
5488 | + } | ||
5489 | + if (title_highlightbody == "Lymphatic") { | ||
5490 | + $scope.CurrentStructure = ""; | ||
5491 | + $scope.Cardiovascular = ""; | ||
5492 | + $scope.Digestive = ""; | ||
5493 | + $scope.Endocrine = ""; | ||
5494 | + $scope.Immune = ""; | ||
5495 | + $scope.Integumentary = ""; | ||
5496 | + $scope.Lymphatic = "active"; | ||
5497 | + $scope.Muscular = ""; | ||
5498 | + $scope.Nervous = ""; | ||
5499 | + $scope.Reproductive = ""; | ||
5500 | + $scope.Respiratory = ""; | ||
5501 | + $scope.Skeletal = ""; | ||
5502 | + $scope.Urinary = ""; | ||
5503 | + } | ||
5504 | + if (title_highlightbody == "Muscular") { | ||
5505 | + $scope.CurrentStructure = ""; | ||
5506 | + $scope.Cardiovascular = ""; | ||
5507 | + $scope.Digestive = ""; | ||
5508 | + $scope.Endocrine = ""; | ||
5509 | + $scope.Immune = ""; | ||
5510 | + $scope.Integumentary = ""; | ||
5511 | + $scope.Lymphatic = ""; | ||
5512 | + $scope.Muscular = "active"; | ||
5513 | + $scope.Nervous = ""; | ||
5514 | + $scope.Reproductive = ""; | ||
5515 | + $scope.Respiratory = ""; | ||
5516 | + $scope.Skeletal = ""; | ||
5517 | + $scope.Urinary = ""; | ||
5518 | + } | ||
5519 | + if (title_highlightbody == "Nervous") { | ||
5520 | + $scope.CurrentStructure = ""; | ||
5521 | + $scope.Cardiovascular = ""; | ||
5522 | + $scope.Digestive = ""; | ||
5523 | + $scope.Endocrine = ""; | ||
5524 | + $scope.Immune = ""; | ||
5525 | + $scope.Integumentary = ""; | ||
5526 | + $scope.Lymphatic = ""; | ||
5527 | + $scope.Muscular = ""; | ||
5528 | + $scope.Nervous = "active"; | ||
5529 | + $scope.Reproductive = ""; | ||
5530 | + $scope.Respiratory = ""; | ||
5531 | + $scope.Skeletal = ""; | ||
5532 | + $scope.Urinary = ""; | ||
5533 | + } | ||
5534 | + if (title_highlightbody == "Reproductive") { | ||
5535 | + $scope.CurrentStructure = ""; | ||
5536 | + $scope.Cardiovascular = ""; | ||
5537 | + $scope.Digestive = ""; | ||
5538 | + $scope.Endocrine = ""; | ||
5539 | + $scope.Immune = ""; | ||
5540 | + $scope.Integumentary = ""; | ||
5541 | + $scope.Lymphatic = ""; | ||
5542 | + $scope.Muscular = ""; | ||
5543 | + $scope.Nervous = ""; | ||
5544 | + $scope.Reproductive = "active"; | ||
5545 | + $scope.Respiratory = ""; | ||
5546 | + $scope.Skeletal = ""; | ||
5547 | + $scope.Urinary = ""; | ||
5548 | + } | ||
5549 | + if (title_highlightbody == "Respiratory") { | ||
5550 | + $scope.CurrentStructure = ""; | ||
5551 | + $scope.Cardiovascular = ""; | ||
5552 | + $scope.Digestive = ""; | ||
5553 | + $scope.Endocrine = ""; | ||
5554 | + $scope.Immune = ""; | ||
5555 | + $scope.Integumentary = ""; | ||
5556 | + $scope.Lymphatic = ""; | ||
5557 | + $scope.Muscular = ""; | ||
5558 | + $scope.Nervous = ""; | ||
5559 | + $scope.Reproductive = ""; | ||
5560 | + $scope.Respiratory = "active"; | ||
5561 | + $scope.Skeletal = ""; | ||
5562 | + $scope.Urinary = ""; | ||
5563 | + } | ||
5564 | + if (title_highlightbody == "Skeletal") { | ||
5565 | + $scope.CurrentStructure = ""; | ||
5566 | + $scope.Cardiovascular = ""; | ||
5567 | + $scope.Digestive = ""; | ||
5568 | + $scope.Endocrine = ""; | ||
5569 | + $scope.Immune = ""; | ||
5570 | + $scope.Integumentary = ""; | ||
5571 | + $scope.Lymphatic = ""; | ||
5572 | + $scope.Muscular = ""; | ||
5573 | + $scope.Nervous = ""; | ||
5574 | + $scope.Reproductive = ""; | ||
5575 | + $scope.Respiratory = ""; | ||
5576 | + $scope.Skeletal = "active"; | ||
5577 | + $scope.Urinary = ""; | ||
5578 | + } | ||
5579 | + if (title_highlightbody == "Urinary") { | ||
5580 | + $scope.CurrentStructure = ""; | ||
5581 | + $scope.Cardiovascular = ""; | ||
5582 | + $scope.Digestive = ""; | ||
5583 | + $scope.Endocrine = ""; | ||
5584 | + $scope.Immune = ""; | ||
5585 | + $scope.Integumentary = ""; | ||
5586 | + $scope.Lymphatic = ""; | ||
5587 | + $scope.Muscular = ""; | ||
5588 | + $scope.Nervous = ""; | ||
5589 | + $scope.Reproductive = ""; | ||
5590 | + $scope.Respiratory = ""; | ||
5591 | + $scope.Skeletal = ""; | ||
5592 | + $scope.Urinary = "active"; | ||
5593 | + } | ||
5594 | + | ||
5407 | } | 5595 | } |
5408 | 5596 | ||
5409 | $scope.ShowSearch = function () { | 5597 | $scope.ShowSearch = function () { |
400-SOURCECODE/AIAHTML5.Web/app/views/da/da-view.html
@@ -125,20 +125,20 @@ | @@ -125,20 +125,20 @@ | ||
125 | <div class="custom-tooltip">Highlight Options</div> | 125 | <div class="custom-tooltip">Highlight Options</div> |
126 | <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> | 126 | <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> |
127 | <ul class="dropdown-menu" aria-labelledby="dropdownMenu2"> | 127 | <ul class="dropdown-menu" aria-labelledby="dropdownMenu2"> |
128 | - <li><a href="#" title="Current Structure">Current Structure</a></li> | 128 | + <li ng-class="CurrentStructure"><a href="#" title="Current Structure">Current Structure</a></li> |
129 | <li role="separator" class="divider"></li> | 129 | <li role="separator" class="divider"></li> |
130 | - <li><a href="#" title="Cardiovascular" id="1" ng-click="HighlightBodysystem($event)">Cardiovascular</a></li> | ||
131 | - <li><a href="#" title="Digestive" id="2" ng-click="HighlightBodysystem($event)" >Digestive</a></li> | ||
132 | - <li><a href="#" title="Endocrine" id="3" ng-click="HighlightBodysystem($event)" >Endocrine</a></li> | ||
133 | - <li><a href="#" title="Immune" id="4" ng-click="HighlightBodysystem($event)" >Immune</a></li> | ||
134 | - <li><a href="#" title="Integumentary" id="5" ng-click="HighlightBodysystem($event)" >Integumentary</a></li> | ||
135 | - <li><a href="#" title="Lymphatic" id="6" ng-click="HighlightBodysystem($event)" >Lymphatic</a></li> | ||
136 | - <li><a href="#" title="Muscular" id="7" ng-click="HighlightBodysystem($event)" >Muscular</a></li> | ||
137 | - <li><a href="#" title="Nervous" id="8" ng-click="HighlightBodysystem($event)" >Nervous</a></li> | ||
138 | - <li><a href="#" title="Reproductive" id="9" ng-click="HighlightBodysystem($event)" >Reproductive</a></li> | ||
139 | - <li><a href="#" title="Respiratory" id="10" ng-click="HighlightBodysystem($event)" >Respiratory</a></li> | ||
140 | - <li><a href="#" title="Skeletal" id="11" ng-click="HighlightBodysystem($event)" >Skeletal</a></li> | ||
141 | - <li><a href="#" title="Urinary" id="12" ng-click="HighlightBodysystem($event)" >Urinary</a></li> | 130 | + <li ng-class="Cardiovascular"><a href="#" title="Cardiovascular" id="1" ng-click="HighlightBodysystem($event)">Cardiovascular</a></li> |
131 | + <li ng-class="Digestive"><a href="#" title="Digestive" id="2" ng-click="HighlightBodysystem($event)">Digestive</a></li> | ||
132 | + <li ng-class="Endocrine"><a href="#" title="Endocrine" id="3" ng-click="HighlightBodysystem($event)">Endocrine</a></li> | ||
133 | + <li ng-class="Immune"><a href="#" title="Immune" id="4" ng-click="HighlightBodysystem($event)">Immune</a></li> | ||
134 | + <li ng-class="Integumentary"><a href="#" title="Integumentary" id="5" ng-click="HighlightBodysystem($event)">Integumentary</a></li> | ||
135 | + <li ng-class="Lymphatic"><a href="#" title="Lymphatic" id="6" ng-click="HighlightBodysystem($event)">Lymphatic</a></li> | ||
136 | + <li ng-class="Muscular"><a href="#" title="Muscular" id="7" ng-click="HighlightBodysystem($event)">Muscular</a></li> | ||
137 | + <li ng-class="Nervous"><a href="#" title="Nervous" id="8" ng-click="HighlightBodysystem($event)">Nervous</a></li> | ||
138 | + <li ng-class="Reproductive"><a href="#" title="Reproductive" id="9" ng-click="HighlightBodysystem($event)">Reproductive</a></li> | ||
139 | + <li ng-class="Respiratory"><a href="#" title="Respiratory" id="10" ng-click="HighlightBodysystem($event)">Respiratory</a></li> | ||
140 | + <li ng-class="Skeletal"><a href="#" title="Skeletal" id="11" ng-click="HighlightBodysystem($event)">Skeletal</a></li> | ||
141 | + <li ng-class="Urinary"><a href="#" title="Urinary" id="12" ng-click="HighlightBodysystem($event)">Urinary</a></li> | ||
142 | </ul> | 142 | </ul> |
143 | </div> | 143 | </div> |
144 | <div class="col-sm-6 hover-gender-tool" ng-init="switchGender()"> | 144 | <div class="col-sm-6 hover-gender-tool" ng-init="switchGender()"> |