From f904df0f0dfd4734f978cdc3ddf5badabc067ed6 Mon Sep 17 00:00:00 2001 From: Adam Young Date: Wed, 19 Jan 2011 21:10:18 -0500 Subject: 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 --- install/ui/hbacsvcgroup.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'install/ui/hbacsvcgroup.js') diff --git a/install/ui/hbacsvcgroup.js b/install/ui/hbacsvcgroup.js index 2dd049cbe..381dcb0bc 100644 --- a/install/ui/hbacsvcgroup.js +++ b/install/ui/hbacsvcgroup.js @@ -22,7 +22,7 @@ /* REQUIRES: ipa.js, details.js, search.js, add.js, entity.js */ -IPA.hbacsvcgroup = function () { +IPA.entity_factories.hbacsvcgroup = function () { var that = IPA.entity({ 'name': 'hbacsvcgroup' @@ -41,8 +41,7 @@ IPA.hbacsvcgroup = function () { 'title': 'Add New HBAC Service Group' }); that.add_dialog(dialog); - dialog.init(); - + var facet = IPA.hbacsvcgroup_search_facet({ 'name': 'search', 'label': 'Search' @@ -61,9 +60,6 @@ IPA.hbacsvcgroup = function () { }; -IPA.add_entity(IPA.hbacsvcgroup()); - - IPA.hbacsvcgroup_add_dialog = function (spec) { spec = spec || {}; -- cgit