diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2013-04-17 10:08:34 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2013-05-06 16:22:27 +0200 |
commit | 5be709bf9d4865486c239584653363c1d85492a6 (patch) | |
tree | b33ef67286459d0397b7e6241f917b6b8a9911a6 /install/ui/src/freeipa/group.js | |
parent | 5239d3750e9a82028e79ffe95b9280fb606fb47b (diff) | |
download | freeipa-5be709bf9d4865486c239584653363c1d85492a6.tar.gz freeipa-5be709bf9d4865486c239584653363c1d85492a6.tar.xz freeipa-5be709bf9d4865486c239584653363c1d85492a6.zip |
Builder and registry for actions
https://fedorahosted.org/freeipa/ticket/3235
Diffstat (limited to 'install/ui/src/freeipa/group.js')
-rw-r--r-- | install/ui/src/freeipa/group.js | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/install/ui/src/freeipa/group.js b/install/ui/src/freeipa/group.js index b04c32d87..34aa02f33 100644 --- a/install/ui/src/freeipa/group.js +++ b/install/ui/src/freeipa/group.js @@ -20,10 +20,18 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -define(['./ipa', './jquery', './details', './search', './association', - './entity'], function(IPA, $) { - -IPA.group = {}; +define([ + './ipa', + './jquery', + './phases', + './reg', + './details', + './search', + './association', + './entity'], + function(IPA, $, phases, reg) { + +var exp = IPA.group = {}; IPA.group.entity = function(spec) { @@ -256,5 +264,14 @@ IPA.group.make_external_action = function(spec) { IPA.register('group', IPA.group.entity); -return {}; +exp.register = function() { + var a = reg.action; + + a.register('make_posix', exp.make_posix_action); + a.register('make_external', exp.make_external_action); +}; + +phases.on('registration', exp.register); + +return exp; });
\ No newline at end of file |