From d6343f4bb079eec744553078c75205abec7e692d Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Mon, 13 Jun 2011 23:18:57 -0500 Subject: Fixed self-service links. In self-service mode the user's association facets have been modified such that the entries are not linked since the only available entity is the user entity. A 'link' parameter has been added to IPA.association_facet and IPA.column to control whether to link the entries. The link_handler() method can be used to define how to handle the link. Ticket #1072 --- install/ui/hbac.js | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) (limited to 'install/ui/hbac.js') diff --git a/install/ui/hbac.js b/install/ui/hbac.js index f18024e1..01370ec7 100644 --- a/install/ui/hbac.js +++ b/install/ui/hbac.js @@ -106,27 +106,10 @@ IPA.hbacsvcgroup_member_hbacsvc_table_widget = function (spec) { var column = that.create_column({ name: 'cn', primary_key: true, - width: '150px' + width: '150px', + link: true }); - column.setup = function(container, record) { - container.empty(); - - var value = record[column.name]; - value = value ? value.toString() : ''; - - $('', { - 'href': '#'+value, - 'html': value, - 'click': function (value) { - return function() { - IPA.nav.show_page(that.other_entity, 'details', value); - return false; - }; - }(value) - }).appendTo(container); - }; - that.create_column({ name: 'description', width: '350px' -- cgit