Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7e7d1b6

Browse files
author
vikasrohit
committedOct 3, 2015
SUP-1754, [Registration] Fix UX and UI skill picker issues
Move to top of the dashboard after saving on skill picker.
1 parent c35cda9 commit 7e7d1b6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
 

‎app/topcoder.controller.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
angular.module('topcoder').controller('TopcoderController', TopcoderController);
55

6-
TopcoderController.$inject = ['NotificationService', '$rootScope', 'CONSTANTS'];
6+
TopcoderController.$inject = ['NotificationService', '$rootScope', '$document', 'CONSTANTS'];
77

8-
function TopcoderController(NotificationService, $rootScope, CONSTANTS) {
8+
function TopcoderController(NotificationService, $rootScope, $document, CONSTANTS) {
99
var vm = this;
1010
vm.menuVisible = false;
1111

@@ -15,6 +15,9 @@
1515
$rootScope.$on('$stateChangeStart', function() {
1616
vm.menuVisible = false;
1717
});
18+
$rootScope.$on('$stateChangeSuccess', function(evt, toState, toParams, fromState, fromParams) {
19+
$document[0].body.scrollTop = $document[0].documentElement.scrollTop = 0;
20+
});
1821

1922
// TODO - enable this once we support notificaitons
2023
// $rootScope.$on(CONSTANTS.EVENT_USER_LOGGED_IN, function() {

0 commit comments

Comments
 (0)
This repository has been archived.