diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js index d75ba6c..fcdc217 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js @@ -854,12 +854,18 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou if ($scope.MultiLanguageAnnationArray.length > 0) { for (var i = 0; i <= $scope.MultiLanguageAnnationArray.length - 1; i++) { var MultipleLanguage = $scope.MultiLanguageAnnationArray[i]; + $rootScope.clickedPinAnnotation = $scope.MultiLanguageAnnationArray[0]; $("#speechBubble" + PinId).append("
" + MultipleLanguage + "
"); } } else { console.log('MultiLanguageAnnationArray.length is :' + $scope.MultiLanguageAnnationArray.length) } + + + + + if ($scope.longestAnnotation != null || $scope.longestAnnotation != undefined) { if ($scope.longestAnnotation.length <= 10) { @@ -1139,13 +1145,16 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou $scope.showAnnotation(selectedPinData, false, true, false); } - - + $('#termList option[selected="selected"]').prop("selected", false); + $('#termList option[value="' + $rootScope.clickedPinAnnotation + '"]').prop("selected", true); + $("#termList").find("option").css({ "background-color": "#ffffff", "color": "#000000" }); + $('#termList option[value="' + $rootScope.clickedPinAnnotation + '"]').css({ "background-color": "#3399FF", "color": "#ffffff" }); + $rootScope.clickedPinAnnotationID = $('#termList option[value="' + $rootScope.clickedPinAnnotation + '"]').attr("id"); + $("div#backdrop #searchListDivAA #termlistfilter li").find("a").css({ "background-color": "#ffffff", "color": "#000000" }); + $("div#backdrop #searchListDivAA #termlistfilter li").find("a[id=" + $rootScope.clickedPinAnnotationID + "]").css({ "background-color": "#3399FF", "color": "#ffffff" }); } }).drawLayers(); - - }