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/host.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/host.js')
-rw-r--r-- | install/ui/host.js | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/install/ui/host.js b/install/ui/host.js index c7424fbe5..71e49fba8 100644 --- a/install/ui/host.js +++ b/install/ui/host.js @@ -268,12 +268,13 @@ IPA.host_provisioning_status_widget = function (spec) { var pkey = that.facet.get_primary_key(); var command = IPA.command({ - 'name': that.entity_name+'_disable_'+pkey, - 'method': that.entity_name+'_disable', - 'args': [pkey], - 'options': { 'all': true, 'rights': true }, - 'on_success': on_success, - 'on_error': on_error + name: that.entity_name+'_disable_'+pkey, + entity: that.entity_name, + method: 'disable', + args: [pkey], + options: { all: true, rights: true }, + on_success: on_success, + on_error: on_error }); command.execute(); @@ -286,14 +287,15 @@ IPA.host_provisioning_status_widget = function (spec) { that.otp_input.val(''); var command = IPA.command({ - 'method': that.entity_name+'_mod', - 'args': [pkey], - 'options': { - 'all': true, - 'rights': true, - 'userpassword': otp + entity: that.entity_name, + method: 'mod', + args: [pkey], + options: { + all: true, + rights: true, + userpassword: otp }, - 'on_success': function(data, text_status, xhr) { + on_success: function(data, text_status, xhr) { alert(IPA.messages.objects.host.otp_confirmation); } }); |