mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-07 21:05:18 +02:00
List views: handle clicks on mailto: and http:// links as expected
refs #11267
This commit is contained in:
parent
188703cf95
commit
4a78fa6a66
@ -420,8 +420,8 @@
|
||||
var linkTarget = $a.attr('target');
|
||||
var $target;
|
||||
var formerUrl;
|
||||
var remote = /^(?:[a-z]+:)\/\//;
|
||||
if (href.match(/^(mailto|javascript|data):/)) {
|
||||
if (href.match(/^(?:(?:mailto|javascript|data):|[a-z]+:\/\/)/)) {
|
||||
event.stopPropagation();
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -439,10 +439,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
// Let remote links pass through
|
||||
if (href.match(remote)) {
|
||||
return true;
|
||||
}
|
||||
// window.open is used as return true; didn't work reliable
|
||||
if (linkTarget === '_blank' || linkTarget === '_self') {
|
||||
window.open(href, linkTarget);
|
||||
|
Loading…
x
Reference in New Issue
Block a user