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/service.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/service.js')
-rw-r--r-- | install/ui/service.js | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/install/ui/service.js b/install/ui/service.js index 9b9b1d59b..7af80c7ee 100644 --- a/install/ui/service.js +++ b/install/ui/service.js @@ -355,28 +355,10 @@ IPA.service_managedby_host_facet = function(spec) { var column = that.create_column({ name: 'fqdn', - primary_key: true + primary_key: true, + link: true }); - column.setup = function(container, record) { - container.empty(); - - var value = record[column.name]; - value = value ? value.toString() : ''; - - $('<a/>', { - '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_adder_column({ name: 'fqdn', primary_key: true, |