summaryrefslogtreecommitdiffstats
path: root/install/ui/aci.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-09-22 11:44:41 -0500
committerEndi S. Dewata <edewata@redhat.com>2011-09-23 13:13:50 +0000
commitc6f5806ed843560c6c0a73e7402ac6c274295995 (patch)
tree2a4f4405ab9ed5209878299c2cd96bdb5f76f255 /install/ui/aci.js
parenteb9d9634da5d089441b773df0968432e8300b0d2 (diff)
downloadfreeipa-c6f5806ed843560c6c0a73e7402ac6c274295995.tar.gz
freeipa-c6f5806ed843560c6c0a73e7402ac6c274295995.tar.xz
freeipa-c6f5806ed843560c6c0a73e7402ac6c274295995.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.js40
1 files changed, 14 insertions, 26 deletions
diff --git a/install/ui/aci.js b/install/ui/aci.js
index 13fbc7d13..929e13d4b 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);