diff options
author | Adam Young <ayoung@redhat.com> | 2011-01-19 21:10:18 -0500 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2011-01-27 16:46:44 -0500 |
commit | f904df0f0dfd4734f978cdc3ddf5badabc067ed6 (patch) | |
tree | a9da10718ae2982b0f8721cdf7df4bad05532f93 /install/ui/hostgroup.js | |
parent | 442d6ad30ce1156914e6245aa7502499e50ec0da (diff) | |
download | freeipa-f904df0f0dfd4734f978cdc3ddf5badabc067ed6.tar.gz freeipa-f904df0f0dfd4734f978cdc3ddf5badabc067ed6.tar.xz freeipa-f904df0f0dfd4734f978cdc3ddf5badabc067ed6.zip |
declarative defintions
Delay the creation of entities until after ipa init is called
made the user and group entity definitions declarative
removed unused facet from groups
adjusted unit tests
made review changes:
factories are now in an associative array
entity init called right after factory
init dialogs in entity init
fixed type on search
Diffstat (limited to 'install/ui/hostgroup.js')
-rw-r--r-- | install/ui/hostgroup.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/install/ui/hostgroup.js b/install/ui/hostgroup.js index 0525c05f..b7d3e8d3 100644 --- a/install/ui/hostgroup.js +++ b/install/ui/hostgroup.js @@ -23,7 +23,7 @@ /* REQUIRES: ipa.js, details.js, search.js, add.js, entity.js */ -IPA.add_entity( function() { +IPA.entity_factories.hostgroup = function() { var that = IPA.entity({ 'name': 'hostgroup' }); @@ -55,13 +55,11 @@ IPA.add_entity( function() { dialog.add_field(IPA.text_widget({name: 'cn', undo: false})); dialog.add_field(IPA.text_widget({name: 'description', undo: false})); - dialog.init(); - that.create_association_facets(); that.entity_init(); }; return that; -}()); +}; |