From 8e95d1eb4e916c5fb218d161f568afaac0a06f0f Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Thu, 22 Sep 2011 11:44:41 -0500 Subject: 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 --- install/ui/aci.js | 40 ++++++++++++++-------------------------- 1 file changed, 14 insertions(+), 26 deletions(-) (limited to 'install/ui/aci.js') 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); -- cgit