summaryrefslogtreecommitdiffstats
path: root/install/ui/field.js
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2011-12-19 18:31:35 -0600
committerPetr Vobornik <pvoborni@redhat.com>2012-01-10 18:42:26 +0100
commit74e31cd9853539f860f68e813191083e46a1192b (patch)
tree0e4914c06c68bd839d4b20897b5273f7c4ded06d /install/ui/field.js
parent0e037f24ce59752713d8291eae30403cb864c758 (diff)
downloadfreeipa-74e31cd9853539f860f68e813191083e46a1192b.tar.gz
freeipa-74e31cd9853539f860f68e813191083e46a1192b.tar.xz
freeipa-74e31cd9853539f860f68e813191083e46a1192b.zip
Added policies into user details page.
The user details page has been modified to show the password policy and Kerberos ticket policy that apply to the user. The policies are currently displayed as read-only. Ticket #703
Diffstat (limited to 'install/ui/field.js')
-rw-r--r--install/ui/field.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/install/ui/field.js b/install/ui/field.js
index 8db0c87cb..09bd6c120 100644
--- a/install/ui/field.js
+++ b/install/ui/field.js
@@ -198,10 +198,10 @@ IPA.field = function(spec) {
that.get_update_info = function() {
var update_info = IPA.update_info_builder.new_update_info();
- if(that.is_dirty()) {
- update_info.fields.push(IPA.update_info_builder.new_field_info(
- that,
- that.save()));
+ if (that.is_dirty()) {
+ var values = that.save();
+ var field_info = IPA.update_info_builder.new_field_info(that, values);
+ update_info.fields.push(field_info);
}
return update_info;
};
@@ -679,6 +679,7 @@ IPA.enable_field = function(spec) {
return that;
};
+// TODO: Add support for nested fields
IPA.field_container = function(spec) {
spec = spec || {};