js/events: fix a small bug introduced right now

Links on non-multiselect action tables stopped working.

refs #6705
This commit is contained in:
Thomas Gelf 2014-08-19 19:04:29 +02:00
parent 736113c80c
commit 686152abf3
1 changed files with 1 additions and 6 deletions

View File

@ -400,7 +400,7 @@
rowSelected: function(event) {
var self = event.data.self;
var icinga = self.icinga;
var $tr = $(this).closest('tr');
var $tr = $(this);
var $table = $tr.closest('table.multiselect');
var data = self.icinga.ui.getSelectionKeys($table);
var url = $table.data('icinga-multiselect-url');
@ -501,11 +501,6 @@
return false;
}
// ignore multiselect table row clicks
if ($a.closest('tr[href]').length > 0 && $a.closest('table.action').length > 0) {
return;
}
// ignore multiselect table row clicks
if ($a.is('tr') && $a.closest('table.multiselect').length > 0) {
return;