additions to patch 118

This commit is contained in:
Adam Young
2010-12-17 13:08:23 -05:00
parent 07ace112af
commit 023f92f517
2 changed files with 1 additions and 10 deletions

View File

@@ -88,12 +88,6 @@ function ipa_add_dialog(spec) {
that.dialog_init();
};
/* Fields that are not displayed directly, but that are managed by
another mechanism, such as the ACI permissions*/
that.additional_fields = [];
that.additional_field = function(field) {
that.additional_fields.push(field);
}
function save_field(field, record, args, options){
var pkey_name = IPA.metadata[that.entity_name].primary_key;
@@ -114,9 +108,6 @@ function ipa_add_dialog(spec) {
for (var i=0; i<that.fields.length; i++) {
save_field(that.fields[i], record, args, options);
}
for (var i=0; i<that.additional_fields.length; i++) {
save_field(that.additional_fields[i], record, args, options);
}
ipa_cmd('add', args, options, on_success, on_error, that.entity_name);
};

View File

@@ -1,5 +1,5 @@
/* Authors:
* Endi Sukma Dewata <edewata@redhat.com>
* Adam Young <ayoung@redhat.com>
*
* Copyright (C) 2010 Red Hat
* see file 'COPYING' for use and warranty information