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) {
$rootScope.$on('$stateChangeSuccess', function () {
$('html, body').animate({ scrollTop: 0 }, 200);
});
$rootScope.$on('$stateChangeStart', function (event, toState, toParams) {
if (!toState.data || !toState.data.authorize) {
if (toState.data && toState.data.skipAuthorize) {

View File

@ -2,6 +2,10 @@
<h1>Create Organization</h1>
</section>
<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">
<div class="box box-default">
<div class="box-header with-border">