1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-30 13:03:53 +01:00

org create desc and page scroll on state changes

This commit is contained in:
Kyle Spearrin 2017-04-07 12:39:52 -04:00
parent 71adf31f7b
commit eaba45369b
2 changed files with 8 additions and 0 deletions

View File

@ -242,6 +242,10 @@ angular
}); });
}) })
.run(function ($rootScope, authService, $state) { .run(function ($rootScope, authService, $state) {
$rootScope.$on('$stateChangeSuccess', function () {
$('html, body').animate({ scrollTop: 0 }, 200);
});
$rootScope.$on('$stateChangeStart', function (event, toState, toParams) { $rootScope.$on('$stateChangeStart', function (event, toState, toParams) {
if (!toState.data || !toState.data.authorize) { if (!toState.data || !toState.data.authorize) {
if (toState.data && toState.data.skipAuthorize) { if (toState.data && toState.data.skipAuthorize) {

View File

@ -2,6 +2,10 @@
<h1>Create Organization</h1> <h1>Create Organization</h1>
</section> </section>
<section class="content"> <section class="content">
<p>
Organizations allow you to share parts of your vault with others as well as manage related users
for a specific entity (such as a company).
</p>
<form name="createOrgForm" ng-submit="createOrgForm.$valid && submit(model)" api-form="submitPromise"> <form name="createOrgForm" ng-submit="createOrgForm.$valid && submit(model)" api-form="submitPromise">
<div class="box box-default"> <div class="box box-default">
<div class="box-header with-border"> <div class="box-header with-border">