From 81f9048c7d550d3df4c52aacb9d450ce6d0d247b Mon Sep 17 00:00:00 2001 From: Mukul Date: Mon, 4 Sep 2017 18:25:22 +0530 Subject: [PATCH] this is solution for bug 20273 AA state maintain issue in grid --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js index 0f93aef..9030e9a 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) { -- libgit2 0.21.4