diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js index bb1691f..0762c8f 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js @@ -67,6 +67,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo //2. Pick the image name to create a source to open $rootScope.imageName = $rootScope.OpenedTileData[3]; + $rootScope.bodySystemName = $rootScope.OpenedTileData[2]; $rootScope.OpenItemImagePath = "../../../content/images/aa/images/" + $rootScope.OpenedTileData[3]; //3. set opened module item title @@ -153,10 +154,28 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo //6. Show all pins on AA opened item $scope.showAllPins(); + //7. Highlight all system body list in left side + $scope.highlightBodySystemList(); } }, 1050); } + + $scope.highlightBodySystemList = function () { + $rootScope.bodySystemNames = $rootScope.bodySystemName.trim().split(/\s*,\s*/); + var bodySystemListObj = document.getElementById("bodySystemList").getElementsByTagName("a"); + var bodySystemListlength = bodySystemListObj.length; + for (var i = 0; i < bodySystemListlength; i++) { + //var boldTag = lis[i]; + for (var j = 0; j < $rootScope.bodySystemNames.length; j++) { + if ((bodySystemListObj[i].innerHTML) == ($rootScope.bodySystemNames[j])) { + $("#" + i).removeClass("disabled"); + + } + } + + } + } function loadFailure() { console.log('unable to load opened module ietem'); return true; diff --git a/400-SOURCECODE/AIAHTML5.Web/app/views/aa/atlas-anatomy-detail.html b/400-SOURCECODE/AIAHTML5.Web/app/views/aa/atlas-anatomy-detail.html index 147300a..bea4211 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/views/aa/atlas-anatomy-detail.html +++ b/400-SOURCECODE/AIAHTML5.Web/app/views/aa/atlas-anatomy-detail.html @@ -16,21 +16,22 @@
-