mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
js: Ignore anchors without href in events.linkClicked()
This commit is contained in:
parent
63452ba250
commit
b85360449b
@ -269,6 +269,11 @@
|
||||
var linkTarget = $a.attr('target');
|
||||
var $target;
|
||||
var formerUrl;
|
||||
|
||||
if (! href) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (href.match(/^(?:(?:mailto|javascript|data):|[a-z]+:\/\/)/)) {
|
||||
event.stopPropagation();
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user