diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-06-13 23:18:57 -0500 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2011-06-16 11:51:25 -0400 |
commit | d6343f4bb079eec744553078c75205abec7e692d (patch) | |
tree | ef49a79fbfff427da1e086da15f59cd75f6f9b83 /install/ui/user.js | |
parent | 724dd997447c84c6eb3893fe40fb2c5a78d4efd7 (diff) | |
download | freeipa-d6343f4bb079eec744553078c75205abec7e692d.tar.gz freeipa-d6343f4bb079eec744553078c75205abec7e692d.tar.xz freeipa-d6343f4bb079eec744553078c75205abec7e692d.zip |
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
Diffstat (limited to 'install/ui/user.js')
-rw-r--r-- | install/ui/user.js | 21 |
1 files changed, 14 insertions, 7 deletions
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 || {}; |