diff options
Diffstat (limited to 'install/ui/netgroup.js')
-rw-r--r-- | install/ui/netgroup.js | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/install/ui/netgroup.js b/install/ui/netgroup.js index a99c6c7e..dcec180f 100644 --- a/install/ui/netgroup.js +++ b/install/ui/netgroup.js @@ -22,11 +22,15 @@ /* REQUIRES: ipa.js, details.js, search.js, add.js, facet.js, entity.js */ -IPA.entity_factories.netgroup = function() { +IPA.netgroup = {}; - return IPA.entity_builder(). - entity('netgroup'). - search_facet({ +IPA.netgroup.entity = function(spec) { + + var that = IPA.entity(spec); + + that.init = function(params) { + + params.builder.search_facet({ columns: [ 'cn', 'description' @@ -76,6 +80,10 @@ IPA.entity_factories.netgroup = function() { name: 'description' } ] - }). - build(); + }); + }; + + return that; }; + +IPA.register('netgroup', IPA.netgroup.entity); |