parent
403c2d3495
commit
2c1abe13a1
|
@ -95,6 +95,11 @@
|
|||
var _this = event.data.self;
|
||||
var icinga = _this.icinga;
|
||||
|
||||
// Check for ctrl or cmd click to open new tab and don't unfold other menus
|
||||
if (event.ctrlKey || event.metaKey) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (href.match(/#/)) {
|
||||
// ...it may be a menu section without a dedicated link.
|
||||
// Switch the active menu item:
|
||||
|
|
|
@ -457,6 +457,12 @@
|
|||
return true;
|
||||
}
|
||||
|
||||
// Check for ctrl or cmd click to open new tab
|
||||
if (event.ctrlKey || event.metaKey) {
|
||||
window.open(href, linkTarget);
|
||||
return false;
|
||||
}
|
||||
|
||||
// Special checks for link clicks in action tables
|
||||
if (! $a.is('tr[href]') && $a.closest('table.action').length > 0) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue