From c3e065879056d85f0a769368c82b128a58c148e1 Mon Sep 17 00:00:00 2001 From: Adam Young Date: Wed, 26 Jan 2011 13:46:49 -0500 Subject: declarative for aci A couple of the ACI definitions were incorrect, and the end result was that fields were not getting initialized. USing the declarative approach cleaned up the cause. Also fixed a few broken unit tests --- install/ui/serverconfig.js | 34 +++++++++++++++------------------- 1 file changed, 15 insertions(+), 19 deletions(-) (limited to 'install/ui/serverconfig.js') diff --git a/install/ui/serverconfig.js b/install/ui/serverconfig.js index dbf46df4..46e2e485 100644 --- a/install/ui/serverconfig.js +++ b/install/ui/serverconfig.js @@ -31,24 +31,20 @@ IPA.entity_factories.config = function(){ var that = IPA.entity({ name: 'config' - }); - - var details = IPA.details_facet(); - - details.add_section( - IPA.stanza({name:'ipaserver', label:'Configuration'}). - input({name:'cn', label:'Name'}). - input({name:'ipacertificatesubjectbase'}). - input({name:'ipadefaultloginshell'}). - input({name:'ipadefaultprimarygroup'}). - input({name:'ipagroupsearchfields'}). - input({name:'ipahomesrootdir'}). - input({name:'ipamaxusernamelength'}). - input({name:'ipamigrationenabled'}). - input({name:'ipasearchrecordslimit'}). - input({name:'ipasearchtimelimit'}). - input({name:'ipausersearchfields'})); - - that.add_facet(details); + }).facet( + IPA.details_facet(). + section( + IPA.stanza({name:'ipaserver', label:'Configuration'}). + input({name:'cn', label:'Name'}). + input({name:'ipacertificatesubjectbase'}). + input({name:'ipadefaultloginshell'}). + input({name:'ipadefaultprimarygroup'}). + input({name:'ipagroupsearchfields'}). + input({name:'ipahomesrootdir'}). + input({name:'ipamaxusernamelength'}). + input({name:'ipamigrationenabled'}). + input({name:'ipasearchrecordslimit'}). + input({name:'ipasearchtimelimit'}). + input({name:'ipausersearchfields'}))); return that; }; \ No newline at end of file -- cgit