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/widget.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'install/ui/widget.js') diff --git a/install/ui/widget.js b/install/ui/widget.js index 3b32d469..fa102737 100644 --- a/install/ui/widget.js +++ b/install/ui/widget.js @@ -1346,7 +1346,14 @@ IPA.table_widget = function (spec) { } var pkey = $.bbq.getState(that.entity_name + '-pkey', true) || ''; - IPA.cmd('show', [pkey], {'all': true, 'rights': true}, on_success, on_error, that.entity_name); + IPA.command({ + entity: that.entity_name, + method: 'show', + args: [pkey], + options: {'all': true, 'rights': true}, + on_success: on_success, + on_error: on_error + }).execute(); }; if (spec.columns) { @@ -1400,7 +1407,8 @@ IPA.entity_select_widget = function(spec) { function find_error(err){ } IPA.command({ - method: entity+'_find', + entity: entity, + method: 'find', args:[that.entity_filter.val()], options:{}, on_success:find_success, -- cgit