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/sudocmdgroup.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/sudocmdgroup.js')
-rw-r--r-- | install/ui/sudocmdgroup.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/install/ui/sudocmdgroup.js b/install/ui/sudocmdgroup.js index 6cb2b83dc..c0ce2aa08 100644 --- a/install/ui/sudocmdgroup.js +++ b/install/ui/sudocmdgroup.js @@ -22,7 +22,7 @@ /* REQUIRES: ipa.js, details.js, search.js, add.js, entity.js */ -IPA.sudocmdgroup = function () { +IPA.entity_factories.sudocmdgroup = function () { var that = IPA.entity({ 'name': 'sudocmdgroup' @@ -41,8 +41,7 @@ IPA.sudocmdgroup = function () { 'title': 'Add New SUDO Command Group' }); that.add_dialog(dialog); - dialog.init(); - + var facet = IPA.sudocmdgroup_search_facet({ 'name': 'search', 'label': 'Search' @@ -61,9 +60,6 @@ IPA.sudocmdgroup = function () { }; -IPA.add_entity(IPA.sudocmdgroup()); - - IPA.sudocmdgroup_add_dialog = function (spec) { spec = spec || {}; |