Commit e237c0205ac23292dbdff632bab778dbf76d5e33

Authored by unknown
1 parent dbb56fee

Commit Changes

400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js
@@ -84,6 +84,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo @@ -84,6 +84,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
84 var moduleItemDataToBeSavedID 84 var moduleItemDataToBeSavedID
85 $("#list-view table tbody tr").removeClass("active"); 85 $("#list-view table tbody tr").removeClass("active");
86 var moduleItemDataToBeSavedID = localStorage.getItem("listViewSelectedID"); 86 var moduleItemDataToBeSavedID = localStorage.getItem("listViewSelectedID");
  87 + alert(moduleItemDataToBeSavedID);
87 $("#list-view table tbody #" + moduleItemDataToBeSavedID).addClass("active"); 88 $("#list-view table tbody #" + moduleItemDataToBeSavedID).addClass("active");
88 $scope.isListViewButtonClicked = true; 89 $scope.isListViewButtonClicked = true;
89 // } 90 // }
@@ -124,7 +125,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo @@ -124,7 +125,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
124 //}); 125 //});
125 $scope.isOpenBtnClicked = false; 126 $scope.isOpenBtnClicked = false;
126 $scope.openModuleItemView = function (event) { 127 $scope.openModuleItemView = function (event) {
127 - 128 + debugger;
128 localStorage.setItem("activeTab", $scope.activeTab); 129 localStorage.setItem("activeTab", $scope.activeTab);
129 //0. Get selected Image Id 130 //0. Get selected Image Id
130 if ($scope.isListViewButtonClicked == true) { 131 if ($scope.isListViewButtonClicked == true) {
@@ -135,14 +136,14 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo @@ -135,14 +136,14 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
135 } 136 }
136 else { 137 else {
137 var moduleItemDataToBeSavedID = event.currentTarget.id; 138 var moduleItemDataToBeSavedID = event.currentTarget.id;
138 - // localStorage.setItem("listViewSelectedID", moduleItemDataToBeSavedID); 139 + localStorage.setItem("listViewSelectedID", moduleItemDataToBeSavedID);
139 var moduleItemDataToBeSaved = $("#list-view table tbody #" + moduleItemDataToBeSavedID).find('td:eq(0)').text(); 140 var moduleItemDataToBeSaved = $("#list-view table tbody #" + moduleItemDataToBeSavedID).find('td:eq(0)').text();
140 } 141 }
141 } 142 }
142 else 143 else
143 { 144 {
144 var moduleItemDataToBeSaved = event.target.id; 145 var moduleItemDataToBeSaved = event.target.id;
145 - // localStorage.setItem("listViewSelectedID", moduleItemDataToBeSavedID); 146 + localStorage.setItem("listViewSelectedID", event.currentTarget.id);
146 $scope.isListViewButtonClicked = false; 147 $scope.isListViewButtonClicked = false;
147 } 148 }
148 149