Commit 8ababc7fd9abc76b054bb7fbee6c5df46bfafeaa

Authored by unknown
1 parent 04d90b32

23751 : Atlas Anatomy > Selected body system pin's annotation should be highligh…

…t in the Search List and List manager.
400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js
@@ -854,12 +854,18 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou @@ -854,12 +854,18 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
854 if ($scope.MultiLanguageAnnationArray.length > 0) { 854 if ($scope.MultiLanguageAnnationArray.length > 0) {
855 for (var i = 0; i <= $scope.MultiLanguageAnnationArray.length - 1; i++) { 855 for (var i = 0; i <= $scope.MultiLanguageAnnationArray.length - 1; i++) {
856 var MultipleLanguage = $scope.MultiLanguageAnnationArray[i]; 856 var MultipleLanguage = $scope.MultiLanguageAnnationArray[i];
  857 + $rootScope.clickedPinAnnotation = $scope.MultiLanguageAnnationArray[0];
857 $("#speechBubble" + PinId).append("<p style='margin-bottom:2px;'>" + MultipleLanguage + "</p>"); 858 $("#speechBubble" + PinId).append("<p style='margin-bottom:2px;'>" + MultipleLanguage + "</p>");
858 } 859 }
859 } 860 }
860 else { 861 else {
861 console.log('MultiLanguageAnnationArray.length is :' + $scope.MultiLanguageAnnationArray.length) 862 console.log('MultiLanguageAnnationArray.length is :' + $scope.MultiLanguageAnnationArray.length)
862 } 863 }
  864 +
  865 +
  866 +
  867 +
  868 +
863 if ($scope.longestAnnotation != null || $scope.longestAnnotation != undefined) { 869 if ($scope.longestAnnotation != null || $scope.longestAnnotation != undefined) {
864 if ($scope.longestAnnotation.length <= 10) { 870 if ($scope.longestAnnotation.length <= 10) {
865 871
@@ -1139,13 +1145,16 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou @@ -1139,13 +1145,16 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
1139 $scope.showAnnotation(selectedPinData, false, true, false); 1145 $scope.showAnnotation(selectedPinData, false, true, false);
1140 1146
1141 } 1147 }
1142 -  
1143 - 1148 + $('#termList option[selected="selected"]').prop("selected", false);
  1149 + $('#termList option[value="' + $rootScope.clickedPinAnnotation + '"]').prop("selected", true);
  1150 + $("#termList").find("option").css({ "background-color": "#ffffff", "color": "#000000" });
  1151 + $('#termList option[value="' + $rootScope.clickedPinAnnotation + '"]').css({ "background-color": "#3399FF", "color": "#ffffff" });
  1152 + $rootScope.clickedPinAnnotationID = $('#termList option[value="' + $rootScope.clickedPinAnnotation + '"]').attr("id");
  1153 + $("div#backdrop #searchListDivAA #termlistfilter li").find("a").css({ "background-color": "#ffffff", "color": "#000000" });
  1154 + $("div#backdrop #searchListDivAA #termlistfilter li").find("a[id=" + $rootScope.clickedPinAnnotationID + "]").css({ "background-color": "#3399FF", "color": "#ffffff" });
1144 } 1155 }
1145 1156
1146 }).drawLayers(); 1157 }).drawLayers();
1147 -  
1148 -  
1149 } 1158 }
1150 1159
1151 1160