diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js index a5e10da..4f32134 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js @@ -1292,7 +1292,7 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou }); $rootScope.loadSearchData = function () { - + //$("#termList").find("option").css({ "background-color": "#ffffff", "color": "#000000" }); var imageId = $rootScope.imageId; var promise = ModuleService.getTermTextDataForAAImage(imageId) @@ -1361,6 +1361,8 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou console.log(' error: ' + error.statusText); } ) + + } @@ -1667,6 +1669,7 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou } $rootScope.isshowAllPinsBtnAfterHideClicked = true; $scope.showItemsForSearch = function () { + if($rootScope.isshowAllPinsBtnAfterHideClicked == true){ console.log('showItemsForSearch is called'); //this check is for log only because we are writing length so need to check if its not null or undefined @@ -1677,6 +1680,15 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou $scope.IsSearchVisible = true; document.getElementById("termlistfilter").style.display = "block"; + + $("#backdrop > #searchListDivAA > #termlistfilter > li").each(function (key, value) { + + if ($(this).find("a").html() == document.getElementById("selectedTermName").value) { + $("#termlistfilter li a").css({ "background-color": "#ffffff", "color": "#000000" }); + $(this).find("a").css({ "background-color": "#3399FF", "color": "#ffffff" }); + } + }); + } else { $rootScope.loadSearchData(); @@ -1711,6 +1723,7 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou } $scope.highlightPinBasedOnSerachItem = function (id) { + $scope.searchItemId = id; $scope.searchItemText = $("#" + id).text(); $rootScope.searchSelectedText = $("#" + id).text();