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/service.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'install/ui/service.js') diff --git a/install/ui/service.js b/install/ui/service.js index dc89ec08..b8f78c79 100644 --- a/install/ui/service.js +++ b/install/ui/service.js @@ -279,15 +279,18 @@ IPA.service_provisioning_status_widget = function (spec) { dialog.add_button(IPA.messages.objects.service.unprovision, function() { var pkey = that.result['krbprincipalname'][0]; - IPA.cmd(that.entity_name+'_disable', [pkey], {}, - function(data, text_status, xhr) { + IPA.command({ + entity: that.entity_name, + method: 'disable', + args: [pkey], + on_success: function(data, text_status, xhr) { set_status('missing'); dialog.close(); }, - function(xhr, text_status, error_thrown) { + on_error: function(xhr, text_status, error_thrown) { dialog.close(); } - ); + }).execute(); }); dialog.init(); -- cgit