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/user.js | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'install/ui/user.js') diff --git a/install/ui/user.js b/install/ui/user.js index 63c2ec4c8..8a8f9443d 100644 --- a/install/ui/user.js +++ b/install/ui/user.js @@ -26,6 +26,11 @@ IPA.entity_factories.user = function() { + var link = true; + if (IPA.nav && IPA.nav.name == 'self-service') { + link = false; + } + var builder = IPA.entity_builder(); builder. @@ -90,17 +95,22 @@ IPA.entity_factories.user = function() { }]}). association_facet({ name: 'memberof_group', - associator: IPA.serial_associator + associator: IPA.serial_associator, + link: link }). association_facet({ name: 'memberof_netgroup', - associator: IPA.serial_associator + associator: IPA.serial_associator, + link: link }). association_facet({ name: 'memberof_role', - associator: IPA.serial_associator + associator: IPA.serial_associator, + link: link + }). + standard_association_facets({ + link: link }). - standard_association_facets(). adder_dialog({ fields: ['uid', 'givenname', 'sn'] }); @@ -108,9 +118,6 @@ IPA.entity_factories.user = function() { return builder.build(); }; -/* ATTRIBUTE CALLBACKS */ - - IPA.user_status_widget = function(spec) { spec = spec || {}; -- cgit