From eaba45369b6f2d701ce906286e3410b88af9b63b Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 7 Apr 2017 12:39:52 -0400 Subject: [PATCH] org create desc and page scroll on state changes --- src/app/config.js | 4 ++++ src/app/settings/views/settingsCreateOrganization.html | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/app/config.js b/src/app/config.js index 338ffeb909..dbc1b56ca4 100644 --- a/src/app/config.js +++ b/src/app/config.js @@ -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) { diff --git a/src/app/settings/views/settingsCreateOrganization.html b/src/app/settings/views/settingsCreateOrganization.html index 077e9769df..f79ca37307 100644 --- a/src/app/settings/views/settingsCreateOrganization.html +++ b/src/app/settings/views/settingsCreateOrganization.html @@ -2,6 +2,10 @@

Create Organization

+

+ 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). +