summaryrefslogtreecommitdiffstats
path: root/install/ui/dns.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-04-12 02:13:30 -0500
committerAdam Young <ayoung@redhat.com>2011-04-13 23:27:50 -0400
commit805b94f22d42eddee42ed8772aca89036edb8399 (patch)
tree12c6d80ce465b0541cfb15332177f36fba79bc0b /install/ui/dns.js
parent9cac1d88fcffcce65018869827eadcfc0ff157f1 (diff)
downloadfreeipa-805b94f22d42eddee42ed8772aca89036edb8399.tar.gz
freeipa-805b94f22d42eddee42ed8772aca89036edb8399.tar.xz
freeipa-805b94f22d42eddee42ed8772aca89036edb8399.zip
Merged IPA.cmd() into IPA.command().
The IPA.cmd() has been merged into IPA.command(). All invocations and test cases have been converted. Ticket #988
Diffstat (limited to 'install/ui/dns.js')
-rw-r--r--install/ui/dns.js16
1 files changed, 12 insertions, 4 deletions
diff --git a/install/ui/dns.js b/install/ui/dns.js
index d7175a140..08aac113c 100644
--- a/install/ui/dns.js
+++ b/install/ui/dns.js
@@ -160,7 +160,8 @@ IPA.records_facet = function (spec){
options[key] = dialog.data.val();
var command = IPA.command({
- method: 'dnsrecord_add',
+ entity: 'dnsrecord',
+ method: 'add',
args: [pkey, resource],
options: options,
on_success: function(data, text_status, xhr) {
@@ -256,7 +257,8 @@ IPA.records_facet = function (spec){
var record = records[i];
var command = IPA.command({
- method: 'dnsrecord_del',
+ entity: 'dnsrecord',
+ method: 'del',
args: [zone, record.resource]
});
@@ -434,8 +436,14 @@ IPA.records_facet = function (spec){
if (resource_filter){
pkey.push(resource_filter);
}
- IPA.cmd('dnsrecord_find',pkey,options,load_on_win, load_on_fail);
-
+ IPA.command({
+ entity: 'dnsrecord',
+ method: 'find',
+ args: pkey,
+ options: options,
+ on_success: load_on_win,
+ on_error:load_on_fail
+ }).execute();
}