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/sudocmd.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'install/ui/sudocmd.js') diff --git a/install/ui/sudocmd.js b/install/ui/sudocmd.js index 335bb3e4..c254452f 100644 --- a/install/ui/sudocmd.js +++ b/install/ui/sudocmd.js @@ -104,8 +104,8 @@ IPA.sudocmd_details_facet = function (spec) { }); that.add_section(section); - section.create_field({'name': 'sudocmd'}); - section.create_field({'name': 'description'}); + section.text({'name': 'sudocmd'}); + section.text({'name': 'description'}); section = IPA.details_section({ 'name': 'groups', -- cgit