diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js index 0cdf25d..adcfebb 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js @@ -33,13 +33,57 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo selectedorientation: '', selectedimagetype: '', }; - $scope.loadForModuleById = function (moduleId) { + $scope.showTabButton = true; + $scope.isListViewDataLoaded = true; + $scope.setActiveTab = function (tabToSet) { + + $scope.activeTab = tabToSet; + localStorage.setItem("activeTab", $scope.activeTab); + if ($scope.activeTab == 1) { + $('#grid-view').css("display","block"); + $('#list-view').css("display", "none"); + $("#demoView").remove(); + } + else + { + $('#grid-view').css("display", "none"); + if ($scope.isListViewDataLoaded == true) { + var htm = ''; + htm += "
Title | Region | System | View | Type |
---|---|---|---|---|
' + value._Title + ' | ' + value._BodyRegion + ' | ' + value._BodySystem + ' | ' + value._ViewOrientation + ' | ' + value._ImageType + ' | '; + htm += "
' + value._Title + '
' + value._Title + '