From 67c056cd27490380d5037d336cfeb2841a8e6df0 Mon Sep 17 00:00:00 2001 From: Mukul Date: Tue, 13 Jun 2017 10:27:10 +0530 Subject: [PATCH] this is for bug 18045 --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/CAController.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/CAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/CAController.js index cd6e5a5..0b036ed 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/CAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/CAController.js @@ -71,6 +71,7 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout else { $scope.setActiveTab(1); $scope.reRunSearchOnLoad(); + $('html, body').animate({ scrollTop: localStorage.getItem('CAGridViewScroll') }); } @@ -449,7 +450,8 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout localStorage.setItem("currentViewTitleFromJson", $rootScope.ViewTitle); localStorage.setItem("currentBodyViewId", $event.currentTarget.id); - + var CAGridViewScrollPosition = $($window).scrollTop(); + localStorage.setItem('CAGridViewScroll', CAGridViewScrollPosition); var u = $location.url(); $location.url('/clinical-animations-detail'); @@ -570,7 +572,7 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout $rootScope.currentSlug = 'clinical-animations-detail'; - + $('html, body').animate({ scrollTop: 0 }); $rootScope.openViews.push( { "module": $rootScope.currentActiveModuleTitle, "bodyView": tittle, "state": 'max', "BodyViewId": $rootScope.currentBodyViewId, -- libgit2 0.21.4