diff options
author | Adam Young <ayoung@redhat.com> | 2011-02-11 15:36:29 -0500 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2011-02-11 15:47:53 -0500 |
commit | f1e46f36d238f9baf3decce17a21fc364dfc6f3d (patch) | |
tree | 16a08b7f9d0fc81f34b538e35659fefaf0630304 | |
parent | d14ef576c3bd1df3bb29033bdaf85ed0053d889d (diff) | |
download | freeipa-f1e46f36d238f9baf3decce17a21fc364dfc6f3d.tar.gz freeipa-f1e46f36d238f9baf3decce17a21fc364dfc6f3d.tar.xz freeipa-f1e46f36d238f9baf3decce17a21fc364dfc6f3d.zip |
allow null keys for show
https://fedorahosted.org/freeipa/ticket/951
-rw-r--r-- | install/ui/details.js | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/install/ui/details.js b/install/ui/details.js index b62f0494..0c68fe4c 100644 --- a/install/ui/details.js +++ b/install/ui/details.js @@ -536,14 +536,18 @@ IPA.details_refresh = function() { var that = this; - that.pkey = $.bbq.getState(that.entity_name + '-pkey', true) || ''; + that.pkey = $.bbq.getState(that.entity_name + '-pkey', true) ; var command = IPA.command({ - 'method': that.entity_name+'_show', - 'args': [that.pkey], - 'options': { 'all': true, 'rights': true } + method: that.entity_name+'_show', + args: [], + options: { 'all': true, 'rights': true } }); + if (that.pkey){ + command.args = [that.pkey]; + } + command.on_success = function(data, text_status, xhr) { that.load(data.result.result); }; |