summaryrefslogtreecommitdiffstats
path: root/install/ui/serverconfig.js
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2011-01-26 13:46:49 -0500
committerAdam Young <ayoung@redhat.com>2011-01-27 16:49:11 -0500
commitc3e065879056d85f0a769368c82b128a58c148e1 (patch)
tree628029b9ff1067408c6426d5def89a2086abf917 /install/ui/serverconfig.js
parentf904df0f0dfd4734f978cdc3ddf5badabc067ed6 (diff)
downloadfreeipa-c3e065879056d85f0a769368c82b128a58c148e1.tar.gz
freeipa-c3e065879056d85f0a769368c82b128a58c148e1.tar.xz
freeipa-c3e065879056d85f0a769368c82b128a58c148e1.zip
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
Diffstat (limited to 'install/ui/serverconfig.js')
-rw-r--r--install/ui/serverconfig.js34
1 files changed, 15 insertions, 19 deletions
diff --git a/install/ui/serverconfig.js b/install/ui/serverconfig.js
index dbf46df43..46e2e4856 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