diff --git a/guacamole/src/main/frontend/src/app/manage/controllers/manageConnectionController.js b/guacamole/src/main/frontend/src/app/manage/controllers/manageConnectionController.js index 06cbeae1ca..5635def0df 100644 --- a/guacamole/src/main/frontend/src/app/manage/controllers/manageConnectionController.js +++ b/guacamole/src/main/frontend/src/app/manage/controllers/manageConnectionController.js @@ -36,6 +36,7 @@ angular.module('manage').controller('manageConnectionController', ['$scope', '$i var $q = $injector.get('$q'); var $routeParams = $injector.get('$routeParams'); var $translate = $injector.get('$translate'); + var $window = $injector.get('$window'); var authenticationService = $injector.get('authenticationService'); var connectionService = $injector.get('connectionService'); var connectionGroupService = $injector.get('connectionGroupService'); @@ -318,6 +319,7 @@ angular.module('manage').controller('manageConnectionController', ['$scope', '$i */ $scope.cloneConnection = function cloneConnection() { $location.path('/manage/' + encodeURIComponent($scope.selectedDataSource) + '/connections').search('clone', identifier); + $window.scrollTo(0,0); }; /** diff --git a/guacamole/src/main/frontend/src/app/manage/controllers/manageConnectionGroupController.js b/guacamole/src/main/frontend/src/app/manage/controllers/manageConnectionGroupController.js index b05827098a..e0029cb157 100644 --- a/guacamole/src/main/frontend/src/app/manage/controllers/manageConnectionGroupController.js +++ b/guacamole/src/main/frontend/src/app/manage/controllers/manageConnectionGroupController.js @@ -32,6 +32,7 @@ angular.module('manage').controller('manageConnectionGroupController', ['$scope' var $location = $injector.get('$location'); var $q = $injector.get('$q'); var $routeParams = $injector.get('$routeParams'); + var $window = $injector.get('$window'); var authenticationService = $injector.get('authenticationService'); var connectionGroupService = $injector.get('connectionGroupService'); var permissionService = $injector.get('permissionService'); @@ -262,6 +263,7 @@ angular.module('manage').controller('manageConnectionGroupController', ['$scope' */ $scope.cloneConnectionGroup = function cloneConnectionGRoup() { $location.path('/manage/' + encodeURIComponent($scope.selectedDataSource) + '/connectionGroups').search('clone', identifier); + $window.scrollTo(0,0); }; /** diff --git a/guacamole/src/main/frontend/src/app/manage/controllers/manageSharingProfileController.js b/guacamole/src/main/frontend/src/app/manage/controllers/manageSharingProfileController.js index e3c9ca17d3..139eaf893b 100644 --- a/guacamole/src/main/frontend/src/app/manage/controllers/manageSharingProfileController.js +++ b/guacamole/src/main/frontend/src/app/manage/controllers/manageSharingProfileController.js @@ -33,6 +33,7 @@ angular.module('manage').controller('manageSharingProfileController', ['$scope', var $location = $injector.get('$location'); var $q = $injector.get('$q'); var $routeParams = $injector.get('$routeParams'); + var $window = $injector.get('$window'); var authenticationService = $injector.get('authenticationService'); var connectionService = $injector.get('connectionService'); var permissionService = $injector.get('permissionService'); @@ -299,6 +300,7 @@ angular.module('manage').controller('manageSharingProfileController', ['$scope', */ $scope.cloneSharingProfile = function cloneSharingProfile() { $location.path('/manage/' + encodeURIComponent($scope.selectedDataSource) + '/sharingProfiles').search('clone', identifier); + $window.scrollTo(0,0); }; /** diff --git a/guacamole/src/main/frontend/src/app/manage/controllers/manageUserController.js b/guacamole/src/main/frontend/src/app/manage/controllers/manageUserController.js index f7ead136ae..d1bbbb52fb 100644 --- a/guacamole/src/main/frontend/src/app/manage/controllers/manageUserController.js +++ b/guacamole/src/main/frontend/src/app/manage/controllers/manageUserController.js @@ -34,6 +34,7 @@ angular.module('manage').controller('manageUserController', ['$scope', '$injecto var $location = $injector.get('$location'); var $routeParams = $injector.get('$routeParams'); var $q = $injector.get('$q'); + var $window = $injector.get('$window'); var authenticationService = $injector.get('authenticationService'); var dataSourceService = $injector.get('dataSourceService'); var membershipService = $injector.get('membershipService'); @@ -431,6 +432,7 @@ angular.module('manage').controller('manageUserController', ['$scope', '$injecto */ $scope.cloneUser = function cloneUser() { $location.path('/manage/' + encodeURIComponent($scope.dataSource) + '/users').search('clone', username); + $window.scrollTo(0,0); }; /** diff --git a/guacamole/src/main/frontend/src/app/manage/controllers/manageUserGroupController.js b/guacamole/src/main/frontend/src/app/manage/controllers/manageUserGroupController.js index b1b04d35fb..b58fe283e9 100644 --- a/guacamole/src/main/frontend/src/app/manage/controllers/manageUserGroupController.js +++ b/guacamole/src/main/frontend/src/app/manage/controllers/manageUserGroupController.js @@ -33,6 +33,7 @@ angular.module('manage').controller('manageUserGroupController', ['$scope', '$in var $location = $injector.get('$location'); var $routeParams = $injector.get('$routeParams'); var $q = $injector.get('$q'); + var $window = $injector.get('$window'); var authenticationService = $injector.get('authenticationService'); var dataSourceService = $injector.get('dataSourceService'); var membershipService = $injector.get('membershipService'); @@ -505,6 +506,7 @@ angular.module('manage').controller('manageUserGroupController', ['$scope', '$in */ $scope.cloneUserGroup = function cloneUserGroup() { $location.path('/manage/' + encodeURIComponent($scope.dataSource) + '/userGroups').search('clone', identifier); + $window.scrollTo(0,0); }; /**