Commit e624aa210574d8013b59da355a63520e236beac1

Authored by unknown
1 parent 53eceac9

Show Hide Functionality In Atlas Anatomy

400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js
... ... @@ -777,7 +777,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
777 777 var clickedPinId = clickedSpeechBubbleId.substring(12, clickedSpeechBubbleId.length);
778 778  
779 779 $("#speechBubbleLine" + clickedPinId).css("visibility", "hidden");
780   -
  780 + $("#speechBubbleLine" + clickedPinId).css("display", "none");
781 781  
782 782 for (var i = 0; i <= $rootScope.speechBubbleDimaensions.length - 1; i++) {
783 783 if ($rootScope.speechBubbleDimaensions[i].id == clickedPinId) {
... ... @@ -1174,8 +1174,39 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
1174 1174  
1175 1175 $scope.IsSearchVisible = false;
1176 1176 }
1177   -
1178   -
  1177 + $rootScope.isShowHideButtonClicked = true;
  1178 + $scope.ShowHideAnnotation = function () {
  1179 + if ($rootScope.isShowHideButtonClicked == true) {
  1180 + $rootScope.annotationArray = [];
  1181 + $("#canvasDiv").find(".common-drag").each(function () {
  1182 + var speechBubbleID = $(this).attr("id");
  1183 + var sppechBubbleId = $(this).attr("id").substring(12);
  1184 + var b = $("#speechBubbleDraggedLine" + sppechBubbleId).css("display");
  1185 + var speechBubbleLineDispProp = $("#speechBubbleLine" + sppechBubbleId).css("display");
  1186 + var speechBubbleLineID = "speechBubbleLine" + sppechBubbleId;
  1187 + var speechBubbleDraggedLineID = "speechBubbleDraggedLine" + sppechBubbleId;
  1188 + if (speechBubbleLineDispProp == "block") {
  1189 + $rootScope.annotationArray.push({ "speechBuubleId": speechBubbleID, "speechBubbleLineId": speechBubbleLineID });
  1190 + }
  1191 + else {
  1192 + $rootScope.annotationArray.push({ "speechBuubleId": speechBubbleID, "speechBubbleLineId": speechBubbleDraggedLineID });
  1193 + }
  1194 + });
  1195 + $rootScope.isShowHideButtonClicked = false;
  1196 + for (var i = 0; i <= $rootScope.annotationArray.length - 1; i++) {
  1197 + $("#" + $rootScope.annotationArray[i].speechBuubleId).css("display", "none");
  1198 + $("#" + $rootScope.annotationArray[i].speechBubbleLineId).css("display", "none");
  1199 + }
  1200 + }
  1201 + else
  1202 + {
  1203 + $rootScope.isShowHideButtonClicked = true;
  1204 + for (var i = 0; i <= $rootScope.annotationArray.length - 1; i++) {
  1205 + $("#" + $rootScope.annotationArray[i].speechBuubleId).css("display", "block");
  1206 + $("#" + $rootScope.annotationArray[i].speechBubbleLineId).css("display", "block");
  1207 + }
  1208 + }
  1209 + }
1179 1210 }]);
1180 1211  
1181 1212 function showSelectedSystemPins(event) {
... ... @@ -1225,3 +1256,11 @@ function onSearchItemSelection(event) {
1225 1256 scope.highlightPinBasedOnSerachItem(event);
1226 1257 });
1227 1258 }
  1259 +
  1260 +function showHideAnnotation(event) {
  1261 +
  1262 + var scope = angular.element(document.getElementById("aaDetailPageDiv")).scope();
  1263 + scope.$apply(function () {
  1264 + scope.ShowHideAnnotation(event);
  1265 + });
  1266 +}
... ...
400-SOURCECODE/AIAHTML5.Web/app/views/aa/atlas-anatomy-detail.html
... ... @@ -53,7 +53,7 @@
53 53 </ul>
54 54  
55 55 </div>
56   - <div class="col-sm-12" data-toggle="tooltip" data-placement="top" title="Show/Hide Structure Name Boxes"><button class="btn btn-black btn-sm marginTop5 btn-block"> <img src="../../../content/images/aa/LeftMenu/comment-box.png" alt="" title=""></button> </div>
  56 + <div class="col-sm-12" data-toggle="tooltip" data-placement="top" title="Show/Hide Structure Name Boxes"><button onclick="showHideAnnotation(event)" class="btn btn-black btn-sm marginTop5 btn-block"> <img src="../../../content/images/aa/LeftMenu/comment-box.png" alt="" title=""></button> </div>
57 57 </div>
58 58 <div class="pips-slider" style="margin-top:125px">
59 59 <h3>Zoom <i class="fa fa-search-plus"></i></h3>
... ...