diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-04-12 02:13:30 -0500 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2011-04-13 23:27:50 -0400 |
commit | 805b94f22d42eddee42ed8772aca89036edb8399 (patch) | |
tree | 12c6d80ce465b0541cfb15332177f36fba79bc0b /install/ui/service.js | |
parent | 9cac1d88fcffcce65018869827eadcfc0ff157f1 (diff) | |
download | freeipa-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/service.js')
-rw-r--r-- | install/ui/service.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/install/ui/service.js b/install/ui/service.js index dc89ec08e..b8f78c79b 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(); |