Commit 40106395e7489a6f8c352b036043db95167481fe
1 parent
f222589c
this is solution for the bug Ci Gridview with scroll
Showing
1 changed file
with
8 additions
and
4 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/CIController.js
... | ... | @@ -80,9 +80,7 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout |
80 | 80 | else { |
81 | 81 | $scope.setActiveTab(1); |
82 | 82 | $scope.reRunSearchOnLoad(); |
83 | - if ($rootScope.getLocalStorageValue('CIGridViewScroll') !== null) { | |
84 | - $('html, body').animate({ scrollTop: $rootScope.getLocalStorageValue('CIGridViewScroll') }); | |
85 | - } | |
83 | + | |
86 | 84 | } |
87 | 85 | |
88 | 86 | |
... | ... | @@ -201,7 +199,13 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout |
201 | 199 | // }); |
202 | 200 | |
203 | 201 | //}); |
204 | - $timeout(function () { $('#' + $rootScope.getLocalStorageValue("currentBodyViewId")).find('.thumbnail').addClass('HightLightThumbnail'); }, 100); | |
202 | + $timeout(function () | |
203 | + { | |
204 | + $('#' + $rootScope.getLocalStorageValue("currentBodyViewId")).find('.thumbnail').addClass('HightLightThumbnail'); | |
205 | + if ($rootScope.getLocalStorageValue('CIGridViewScroll') !== null) { | |
206 | + $('html, body').animate({ scrollTop: $rootScope.getLocalStorageValue('CIGridViewScroll') }); | |
207 | + } | |
208 | + }, 100); | |
205 | 209 | |
206 | 210 | |
207 | 211 | $timeout(function () { $('#ciSpinner').css('visibility', 'hidden'); }, 300); | ... | ... |