mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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
This commit is contained in:
committed by
Adam Young
parent
724dd99744
commit
d6343f4bb0
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user