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