Fix query that finds the nearest container of a table row and stores it.

This commit is contained in:
Matthias Jentsch 2014-04-28 09:46:35 +02:00
parent c641988233
commit 661dbea740
2 changed files with 2 additions and 2 deletions

View File

@ -382,7 +382,7 @@
}
// update selection
if (event.ctrlKey && multisel) {
if ((event.ctrlKey || event.metaKey) && multisel) {
icinga.ui.toogleTableRowSelection($tr);
// multi selection
} else if (event.shiftKey && multisel) {

View File

@ -477,7 +477,7 @@
*/
focusTable: function (table) {
$('table').filter(function(){ return this !== table; }).find('tr[href]').removeClass('active');
var n = $(table).closest('.container').data('icinga-url');
var n = $(table).closest('div.container').attr('data-icinga-url');
focusedTableDataUrl = n;
},