Disallow new tab opening on anything but anchors

This commit is contained in:
Jennifer Mourek 2019-05-24 11:09:05 +02:00
parent 1c666d88e6
commit b6f8df5ddc
1 changed files with 1 additions and 1 deletions

View File

@ -458,7 +458,7 @@
}
// 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);
return false;
}