From f1e46f36d238f9baf3decce17a21fc364dfc6f3d Mon Sep 17 00:00:00 2001 From: Adam Young Date: Fri, 11 Feb 2011 15:36:29 -0500 Subject: allow null keys for show https://fedorahosted.org/freeipa/ticket/951 --- install/ui/details.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'install') 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); }; -- cgit