Merge pull request #3299 from Icinga/bugfix/html-in-plugin-output-leads-to-js-errors-3298

actiontable.js: Use `event.currentTarget` instead of the closest tr
This commit is contained in:
lippserd 2018-01-22 13:36:37 +01:00 committed by GitHub
commit ac848fdea2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -375,7 +375,7 @@
ActionTable.prototype.onRowClicked = function (event) {
var _this = event.data.self;
var $target = $(event.target);
var $tr = $target.closest('tr');
var $tr = $(event.currentTarget);
var table = new Selection($tr.closest('table.action, table.table-row-selectable')[0], _this.icinga);
// some rows may contain form actions that trigger a different action, pass those through