Skip to content

Commit

Permalink
Display the table on single-selection rows as active without any delay
Browse files Browse the repository at this point in the history
refs #8623
  • Loading branch information
majentsch committed Jul 29, 2015
1 parent 84f35bc commit 3a85dc7
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions public/js/icinga/events.js
Expand Up @@ -354,18 +354,16 @@
return true;
}

// Special checks for link clicks in multiselect rows
if (! $a.is('tr[href]') && $a.closest('tr[href]').length > 0 && $a.closest('table.multiselect').length > 0) {
// Special checks for link clicks in action tables
if (! $a.is('tr[href]') && $a.closest('table.action').length > 0) {

// ignoray clicks to ANY link with special key pressed
if (event.ctrlKey || event.metaKey || event.shiftKey)
{
if ($a.closest('table.multiselect').length > 0 && (event.ctrlKey || event.metaKey || event.shiftKey)) {
return true;
}

// ignore inner links matching the row URL
if ($a.attr('href') === $a.closest('tr[href]').attr('href'))
{
if ($a.attr('href') === $a.closest('tr[href]').attr('href')) {
return true;
}
}
Expand Down

0 comments on commit 3a85dc7

Please sign in to comment.