diff options
author | Stefan Giehl <stefan@matomo.org> | 2020-05-06 10:24:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-06 10:24:46 +0300 |
commit | be92d82ab3b046cf366908db0d33c1675b531e2d (patch) | |
tree | 99e88193543741fa5da651f2c6734e49e5b36637 /plugins | |
parent | 474bd825e8c0a982d82ef2f8569a65a3a12288f5 (diff) |
ensure row actions are only bound once (#15914)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/CoreHome/javascripts/dataTable_rowactions.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/CoreHome/javascripts/dataTable_rowactions.js b/plugins/CoreHome/javascripts/dataTable_rowactions.js index a7272ad236..3481e28b7b 100644 --- a/plugins/CoreHome/javascripts/dataTable_rowactions.js +++ b/plugins/CoreHome/javascripts/dataTable_rowactions.js @@ -143,7 +143,7 @@ DataTable_RowAction.prototype.initTr = function (tr) { // for multi-row evolution) wouldn't be possible. Also, sub-tables might have different // API actions. For the label filter to work, we need to use the parent action. // We use jQuery events to let subtables access their parents. - tr.bind(self.trEventName, function (e, params) { + tr.unbind(self.trEventName).bind(self.trEventName, function (e, params) { self.trigger($(this), params.originalEvent, params.label, params.originalRow); }); }; |