diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-09-22 11:44:41 -0500 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2011-09-23 13:13:16 +0000 |
commit | 8e95d1eb4e916c5fb218d161f568afaac0a06f0f (patch) | |
tree | a7e3d8fffdb7399c6886db75133d868865afa045 /install/ui/aci.js | |
parent | 390d017e321fd5ed56af094cf1f1c74f64e95735 (diff) | |
download | freeipa-8e95d1eb4e916c5fb218d161f568afaac0a06f0f.tar.gz freeipa-8e95d1eb4e916c5fb218d161f568afaac0a06f0f.tar.xz freeipa-8e95d1eb4e916c5fb218d161f568afaac0a06f0f.zip |
Removed undo flags from dialog field specs.
Since the undo flag is now automatically set to false in dialogs,
it's no longer necessary to specify it in the field specs.
Ticket #1394
Diffstat (limited to 'install/ui/aci.js')
-rw-r--r-- | install/ui/aci.js | 40 |
1 files changed, 14 insertions, 26 deletions
diff --git a/install/ui/aci.js b/install/ui/aci.js index 13fbc7d1..929e13d4 100644 --- a/install/ui/aci.js +++ b/install/ui/aci.js @@ -69,22 +69,18 @@ IPA.entity_factories.permission = function() { { name: 'general', fields: [ - { - name: 'cn', - undo: false - }, + 'cn', { factory: IPA.rights_widget, name: 'permissions', - join: true, undo: false + join: true } ] }, { factory: IPA.target_section, name: 'target', - label: IPA.messages.objects.permission.target, - undo: false + label: IPA.messages.objects.permission.target } ] }). @@ -173,8 +169,7 @@ IPA.entity_factories.selfservice = function() { 'aciname', {factory:IPA.attributes_widget, object_type:'user', - name:'attrs', - undo: false + name:'attrs' }] }). build(); @@ -218,21 +213,20 @@ IPA.entity_factories.delegation = function() { factory: IPA.entity_select_widget, name: 'group', other_entity: 'group', - other_field: 'cn', - undo: false + other_field: 'cn' }, { factory: IPA.entity_select_widget, name: 'memberof', other_entity: 'group', other_field: 'cn', - join: true, - undo: false + join: true }, { - factory:IPA.attributes_widget, - name: 'attrs', object_type: 'user', - join: true, undo: false + factory: IPA.attributes_widget, + name: 'attrs', + object_type: 'user', + join: true }] }). build(); @@ -400,7 +394,6 @@ IPA.target_section = function(spec) { spec = spec || {}; var that = IPA.details_section(spec); - that.undo = typeof spec.undo == 'undefined' ? true : spec.undo; var target_types = [ { @@ -504,31 +497,26 @@ IPA.target_section = function(spec) { var init = function() { that.filter_text = IPA.text_widget({ name: 'filter', - undo: that.undo, entity: spec.entity }); that.subtree_textarea = IPA.textarea_widget({ entity: spec.entity, name: 'subtree', - cols: 30, rows: 1, - undo: that.undo + cols: 30, rows: 1 }); that.group_select = IPA.entity_select_widget({ entity: spec.entity, name: 'targetgroup', other_entity: 'group', - other_field: 'cn', - undo: that.undo + other_field: 'cn' }); that.type_select = IPA.select_widget({ entity: spec.entity, - name: 'type', - undo: that.undo + name: 'type' }); that.attribute_table = IPA.attributes_widget({ entity: spec.entity, - name: 'attrs', - undo: that.undo + name: 'attrs' }); that.add_field(that.filter_text); |