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/entity.js | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) (limited to 'install/ui/entity.js') diff --git a/install/ui/entity.js b/install/ui/entity.js index 599bd2ee..783cfcbd 100644 --- a/install/ui/entity.js +++ b/install/ui/entity.js @@ -819,32 +819,29 @@ IPA.entity_builder = function(){ return that; }; - that.standard_association_facets = function() { + that.standard_association_facets = function(spec) { + + spec = spec || {}; var attribute_members = entity.metadata.attribute_members; for (var attribute_member in attribute_members) { - that.association_facets(attribute_member); - } - - return that; - }; - that.association_facets = function(attribute_member) { + var other_entities = entity.metadata.attribute_members[attribute_member]; - var other_entities = entity.metadata.attribute_members[attribute_member]; + for (var i=0; i