mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-22 05:14:25 +02:00
Disallow new tab opening on anything but anchors
This commit is contained in:
parent
1c666d88e6
commit
b6f8df5ddc
@ -458,7 +458,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check for ctrl or cmd click to open new tab unless clicking on a multiselect row
|
// Check for ctrl or cmd click to open new tab unless clicking on a multiselect row
|
||||||
if ((event.ctrlKey || event.metaKey) && ! $a.parent().parent('table').length > 0 && href !== '#') {
|
if ((event.ctrlKey || event.metaKey) && href !== '#' && $a.is('a')) {
|
||||||
window.open(href, linkTarget);
|
window.open(href, linkTarget);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user