Skip to content

Commit

Permalink
Merge pull request #3299 from Icinga/bugfix/html-in-plugin-output-lea…
Browse files Browse the repository at this point in the history
…ds-to-js-errors-3298

actiontable.js: Use `event.currentTarget` instead of the closest tr
  • Loading branch information
lippserd authored Jan 22, 2018
2 parents 02b4a82 + 7483a16 commit ac848fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/js/icinga/behavior/actiontable.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ac848fd

Please sign in to comment.