diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2013-03-19 15:55:04 +0100 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2013-05-06 16:22:19 +0200 |
commit | 8a0f60cf4607f50af67833f31d6a21cd021581db (patch) | |
tree | d9da9be62725e5e6f1711cd5b7258d5fbeefdd31 /install/ui/src/freeipa/app.js | |
parent | 89635f1bc356bb9146c73e25530872e15e6acfec (diff) | |
download | freeipa-8a0f60cf4607f50af67833f31d6a21cd021581db.tar.gz freeipa-8a0f60cf4607f50af67833f31d6a21cd021581db.tar.xz freeipa-8a0f60cf4607f50af67833f31d6a21cd021581db.zip |
Add handling of runtime and shutdown phase. App-init renamed to init.
https://fedorahosted.org/freeipa/ticket/3236
Diffstat (limited to 'install/ui/src/freeipa/app.js')
-rw-r--r-- | install/ui/src/freeipa/app.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/install/ui/src/freeipa/app.js b/install/ui/src/freeipa/app.js index 361d2371e..72a41497b 100644 --- a/install/ui/src/freeipa/app.js +++ b/install/ui/src/freeipa/app.js @@ -71,7 +71,7 @@ define([ */ register_phases: function() { - phases.on('app-init', lang.hitch(this, function() { + phases.on('init', lang.hitch(this, function() { var app = this.app = new this.App_class(); app.init(); return app; @@ -92,6 +92,14 @@ define([ phases.on('profile', lang.hitch(this, function() { this.app.choose_profile(); })); + + phases.on('runtime', lang.hitch(this, function() { + return this.app.start_runtime(); + })); + + phases.on('shutdown', lang.hitch(this, function() { + return this.app.start_logout(); + })); }, run: function() { |