From 348d734c59432a740b52924ac18ff47b30dad54e Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Thu, 3 Feb 2011 21:42:50 -0600 Subject: Restructuring details page. Previously the IPA.details_list_section can only be used with widgets that generates
tag because it uses the following structure:
Telephone Number:
111-1111
222-2222
The
tag was previously used to handle multi-valued attributes. Since multi-valued attributes are now handled by the recently added IPA.multivalued_text_widget, the structure can be changed as follows:
Telephone Number:
111-1111
222-2222
This allows IPA.details_list_section to be used with any widgets without requiring the
tag. --- install/ui/sudocmdgroup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'install/ui/sudocmdgroup.js') diff --git a/install/ui/sudocmdgroup.js b/install/ui/sudocmdgroup.js index c0ce2aa0..1ffbc096 100644 --- a/install/ui/sudocmdgroup.js +++ b/install/ui/sudocmdgroup.js @@ -110,8 +110,8 @@ IPA.sudocmdgroup_details_facet = function (spec) { }); that.add_section(section); - section.create_field({'name': 'cn'}); - section.create_field({'name': 'description'}); + section.text({'name': 'cn'}); + section.text({'name': 'description'}); section = IPA.details_section({ 'name': 'commands', -- cgit