mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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
This commit is contained in:
committed by
Adam Young
parent
9cac1d88fc
commit
805b94f22d
@@ -136,11 +136,17 @@ IPA.user_status_widget = function(spec) {
|
||||
var jobj = $(this);
|
||||
var val = jobj.attr('title');
|
||||
var pkey = $.bbq.getState('user-pkey');
|
||||
var command = 'user_enable';
|
||||
var method = 'enable';
|
||||
if (val == IPA.messages.objects.user.active) {
|
||||
command = 'user_disable';
|
||||
method = 'disable';
|
||||
}
|
||||
IPA.cmd(command, [pkey], {}, on_lock_win,on_lock_fail);
|
||||
IPA.command({
|
||||
entity: 'user',
|
||||
method: method,
|
||||
args: [pkey],
|
||||
on_success: on_lock_win,
|
||||
on_error: on_lock_fail
|
||||
}).execute();
|
||||
|
||||
return (false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user