mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
Temporary: mainDetail: Don't trap clickable links, only rowselect loads detail
refs #4663
This commit is contained in:
parent
5d0eaa5cd3
commit
e9292199e7
@ -122,11 +122,12 @@ function(Container, $, logger, URI) {
|
|||||||
domContext = domContext || contentNode;
|
domContext = domContext || contentNode;
|
||||||
|
|
||||||
$('tbody tr', domContext).on('click', function(ev) {
|
$('tbody tr', domContext).on('click', function(ev) {
|
||||||
var targetEl = ev.target || ev.toElement || ev.relatedTarget;
|
var targetEl = ev.target || ev.toElement || ev.relatedTarget,
|
||||||
|
a = $(targetEl).closest('a');
|
||||||
|
|
||||||
if (targetEl.nodeName.toLowerCase() === "a") {
|
if (a.length) {
|
||||||
// test if the URL is on the current server, if not open it directly
|
// test if the URL is on the current server, if not open it directly
|
||||||
if(Container.isExternalLink($(targetEl).attr('href'))) {
|
if (true || Container.isExternalLink(a.attr('href'))) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user