Commit 67c056cd27490380d5037d336cfeb2841a8e6df0
1 parent
1d2fae10
this is for bug 18045
Showing
1 changed file
with
4 additions
and
2 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/CAController.js
... | ... | @@ -71,6 +71,7 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout |
71 | 71 | else { |
72 | 72 | $scope.setActiveTab(1); |
73 | 73 | $scope.reRunSearchOnLoad(); |
74 | + $('html, body').animate({ scrollTop: localStorage.getItem('CAGridViewScroll') }); | |
74 | 75 | } |
75 | 76 | |
76 | 77 | |
... | ... | @@ -449,7 +450,8 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout |
449 | 450 | |
450 | 451 | localStorage.setItem("currentViewTitleFromJson", $rootScope.ViewTitle); |
451 | 452 | localStorage.setItem("currentBodyViewId", $event.currentTarget.id); |
452 | - | |
453 | + var CAGridViewScrollPosition = $($window).scrollTop(); | |
454 | + localStorage.setItem('CAGridViewScroll', CAGridViewScrollPosition); | |
453 | 455 | var u = $location.url(); |
454 | 456 | $location.url('/clinical-animations-detail'); |
455 | 457 | |
... | ... | @@ -570,7 +572,7 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout |
570 | 572 | |
571 | 573 | |
572 | 574 | $rootScope.currentSlug = 'clinical-animations-detail'; |
573 | - | |
575 | + $('html, body').animate({ scrollTop: 0 }); | |
574 | 576 | $rootScope.openViews.push( |
575 | 577 | { |
576 | 578 | "module": $rootScope.currentActiveModuleTitle, "bodyView": tittle, "state": 'max', "BodyViewId": $rootScope.currentBodyViewId, | ... | ... |