diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-04-07 16:14:58 -0500 |
---|---|---|
committer | Endi Sukma Dewata <edewata@people01.fedoraproject.org> | 2011-04-11 16:03:37 +0000 |
commit | 689fd30b522c1bb77bb6e087bdfca940553fe495 (patch) | |
tree | 7a95153df1983c3384e4f0a3957723da5d73fad8 /install/ui/service.js | |
parent | f0f83a862eee908c308c25561a18f8b1e218c081 (diff) | |
download | freeipa-689fd30b522c1bb77bb6e087bdfca940553fe495.tar.gz freeipa-689fd30b522c1bb77bb6e087bdfca940553fe495.tar.xz freeipa-689fd30b522c1bb77bb6e087bdfca940553fe495.zip |
Refactored builder interface.
The IPA.entity_builder has been modified to take a 'factory' parameter
in custom facet's and custom dialog's spec. The IPA.dialog has been
modified to take an array of fields in the spec. The IPA.search_facet
has been modified to take an array of columns in the spec.
Diffstat (limited to 'install/ui/service.js')
-rw-r--r-- | install/ui/service.js | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/install/ui/service.js b/install/ui/service.js index 363152518..dc89ec08e 100644 --- a/install/ui/service.js +++ b/install/ui/service.js @@ -27,15 +27,15 @@ IPA.entity_factories.service = function() { return IPA.entity_builder(). entity('service'). - facet( - IPA.search_facet(). - column({name: 'krbprincipalname'}). - dialog( - IPA.service_add_dialog({ - name: 'add', - title: IPA.messages.objects.service.add, - width: '450px' - }))). + search_facet({ + columns: [ 'krbprincipalname' ] + }). + dialog({ + factory: IPA.service_add_dialog, + name: 'add', + title: IPA.messages.objects.service.add, + width: '450px' + }). details_facet({sections:[ { name: 'details', @@ -69,11 +69,12 @@ IPA.entity_factories.service = function() { label: IPA.messages.objects.service.status }] }]}). - facet(IPA.service_managedby_host_facet({ - name: 'managedby_host', - add_method: 'add_host', - remove_method: 'remove_host' - })). + facet({ + factory: IPA.service_managedby_host_facet, + name: 'managedby_host', + add_method: 'add_host', + remove_method: 'remove_host' + }). standard_association_facets(). build(); }; |