summaryrefslogtreecommitdiffstats
path: root/install/ui/policy.js
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2011-03-31 15:32:29 -0400
committerAdam Young <ayoung@redhat.com>2011-03-31 17:29:33 -0400
commit6948c0813dff35afadd63bc0647271f00bfc566f (patch)
tree19a212045037900336bcf2cd963491f87a85a9d9 /install/ui/policy.js
parentef57ee0d936a910407a940273f1dbd9ff084fffa (diff)
downloadfreeipa-6948c0813dff35afadd63bc0647271f00bfc566f.tar.gz
freeipa-6948c0813dff35afadd63bc0647271f00bfc566f.tar.xz
freeipa-6948c0813dff35afadd63bc0647271f00bfc566f.zip
code review fixes
this version includes using spec for detail_facets
Diffstat (limited to 'install/ui/policy.js')
-rw-r--r--install/ui/policy.js24
1 files changed, 13 insertions, 11 deletions
diff --git a/install/ui/policy.js b/install/ui/policy.js
index ec202138c..ec2cb78a7 100644
--- a/install/ui/policy.js
+++ b/install/ui/policy.js
@@ -30,13 +30,14 @@ IPA.entity_factories.pwpolicy = function() {
search_facet({
columns:['cn'],
add_fields:['cn', 'cospriority']}).
- details_facet([
- {
- section : 'identity',
- fields:['krbmaxpwdlife','krbminpwdlife','krbpwdhistorylength',
- 'krbpwdmindiffchars','krbpwdminlength']
- }]).
- standard_associations().
+ details_facet({
+ sections:[
+ {
+ name : 'identity',
+ fields:['krbmaxpwdlife','krbminpwdlife','krbpwdhistorylength',
+ 'krbpwdmindiffchars','krbpwdminlength']
+ }]}).
+ standard_association_facets().
build();
};
@@ -47,9 +48,10 @@ IPA.entity_factories.pwpolicy = function() {
IPA.entity_factories.krbtpolicy = function() {
return IPA.entity_builder().
entity('krbtpolicy').
- details_facet([{
- section: 'identity',
- fields:[ 'krbmaxrenewableage','krbmaxticketlife' ]
- }]).
+ details_facet({
+ sections:[{
+ name: 'identity',
+ fields:[ 'krbmaxrenewableage','krbmaxticketlife' ]
+ }]}).
build();
};