diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js
index ca37ad5..984b217 100644
--- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js
+++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js
@@ -128,9 +128,17 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
$scope.moduleLandingData = result;
// setTimeout(function () { $('#' + $rootScope.highlightid).find('.thumbnail').addClass('hightlightstate'); }, 100);
- if ($rootScope.getLocalStorageValue('AAGridViewHighlightThumbnail') !== null) {
- setTimeout(function () { $('#' + $rootScope.getLocalStorageValue("AAGridViewHighlightThumbnail")).find('.thumbnail').addClass('HightLightThumbnail'); }, 100);
- }
+
+ setTimeout(function ()
+ {
+ if ($rootScope.getLocalStorageValue('AAGridViewHighlightThumbnail') !== null) {
+ $('#' + $rootScope.getLocalStorageValue("AAGridViewHighlightThumbnail")).find('.thumbnail').addClass('HightLightThumbnail');
+ }
+ if ($rootScope.getLocalStorageValue('AAGridViewScroll') !== null) {
+ $('html, body').animate({ scrollTop: $rootScope.getLocalStorageValue('AAGridViewScroll') }, 'slow');
+ }
+ }, 100);
+
//console.log(JSON.stringify(result, null, 4));
},
function (error) {
@@ -138,9 +146,7 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
console.log(' error: ' + error.statusText);
}
)
- if ($rootScope.getLocalStorageValue('AAGridViewScroll') !== null) {
- $('html, body').animate({ scrollTop: $rootScope.getLocalStorageValue('AAGridViewScroll') }, 'slow');
- }
+
}
//$scope.$on('$viewContentLoaded', function (event) {