summaryrefslogtreecommitdiffstats
path: root/install/ui/dns.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/dns.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/dns.js')
-rw-r--r--install/ui/dns.js29
1 files changed, 12 insertions, 17 deletions
diff --git a/install/ui/dns.js b/install/ui/dns.js
index da00a0495..cf8f68619 100644
--- a/install/ui/dns.js
+++ b/install/ui/dns.js
@@ -93,15 +93,13 @@ IPA.entity_factories.dnszone = function() {
fields: [
{
name: 'idnsname',
- optional: true,
- undo: false
+ optional: true
},
'name_from_ip',
'idnssoamname',
{
name: 'idnssoarname',
- optional: true,
- undo: false
+ optional: true
},
{
factory: IPA.force_dnszone_add_checkbox_widget,
@@ -583,28 +581,26 @@ IPA.entity_factories.dnsrecord = function() {
]
}).
adder_dialog({
- pre_execute_hook:function(command){
+ pre_execute_hook: function(command) {
var record_type = command.options.record_type;
var record_data = command.options.record_data;
- delete command.options.record_type;
- delete command.options.record_data;
+ delete command.options.record_type;
+ delete command.options.record_data;
command.options[record_type] = record_data;
},
fields: [
'idnsname',
{
- name:'record_type',
- label:IPA.messages.objects.dnsrecord.type,
- factory:IPA.dnsrecord_type_widget,
- undo: false
+ name: 'record_type',
+ label: IPA.messages.objects.dnsrecord.type,
+ factory: IPA.dnsrecord_type_widget
},
{
- name:'record_data',
- label:IPA.messages.objects.dnsrecord.data,
- factory:IPA.text_widget,
- param_info:{required:true},
- undo: false
+ name: 'record_data',
+ label: IPA.messages.objects.dnsrecord.data,
+ factory: IPA.text_widget,
+ param_info: {required:true}
}
]
}).
@@ -670,7 +666,6 @@ IPA.force_dnszone_add_checkbox_widget = function(spec) {
var param_info = IPA.get_method_option('dnszone_add', spec.name);
spec.label = param_info.label;
spec.tooltip = param_info.doc;
- spec.undo = false;
return IPA.checkbox_widget(spec);
};