diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js index 1684ec0..bd7ddfe 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js @@ -84,6 +84,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo var moduleItemDataToBeSavedID $("#list-view table tbody tr").removeClass("active"); var moduleItemDataToBeSavedID = localStorage.getItem("listViewSelectedID"); + alert(moduleItemDataToBeSavedID); $("#list-view table tbody #" + moduleItemDataToBeSavedID).addClass("active"); $scope.isListViewButtonClicked = true; // } @@ -124,7 +125,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo //}); $scope.isOpenBtnClicked = false; $scope.openModuleItemView = function (event) { - + debugger; localStorage.setItem("activeTab", $scope.activeTab); //0. Get selected Image Id if ($scope.isListViewButtonClicked == true) { @@ -135,14 +136,14 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo } else { var moduleItemDataToBeSavedID = event.currentTarget.id; - // localStorage.setItem("listViewSelectedID", moduleItemDataToBeSavedID); + localStorage.setItem("listViewSelectedID", moduleItemDataToBeSavedID); var moduleItemDataToBeSaved = $("#list-view table tbody #" + moduleItemDataToBeSavedID).find('td:eq(0)').text(); } } else { var moduleItemDataToBeSaved = event.target.id; - // localStorage.setItem("listViewSelectedID", moduleItemDataToBeSavedID); + localStorage.setItem("listViewSelectedID", event.currentTarget.id); $scope.isListViewButtonClicked = false; }