From 805b94f22d42eddee42ed8772aca89036edb8399 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Tue, 12 Apr 2011 02:13:30 -0500 Subject: 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 --- install/ui/dns.js | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'install/ui/dns.js') 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(); } -- cgit