From 93f95820df37b7e81a72c19c9231df4136fef77f Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Thu, 4 Jul 2024 14:16:18 +0200 Subject: [PATCH] Remove superfluos params of trigger method --- asset/js/widget/ActionList.js | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/asset/js/widget/ActionList.js b/asset/js/widget/ActionList.js index 50076f17..c4ee952e 100644 --- a/asset/js/widget/ActionList.js +++ b/asset/js/widget/ActionList.js @@ -120,10 +120,7 @@ define(["../notjQuery"], function (notjQuery) { if (activeItems.length === 1 && toActiveItems.length === 0 ) { - notjQuery(this.list).trigger( - 'all-deselected', - {target: target, actionListItem: activeItems[0]} - ); + notjQuery(this.list).trigger('all-deselected'); this.clearSelection(toDeactivateItems); this.addSelectionCountToFooter(); @@ -447,10 +444,7 @@ define(["../notjQuery"], function (notjQuery) { } if (this.lastTimeoutId === null) { // trigger once, when just started selecting list items - notjQuery(this.list).trigger( - 'selection-start', - {actionListItem: activeItems[0]} - ); + notjQuery(this.list).trigger('selection-start'); } clearTimeout(this.lastTimeoutId); @@ -459,10 +453,7 @@ define(["../notjQuery"], function (notjQuery) { // TODO: maybe we need a property to know if a req is in process - notjQuery(this.list).trigger( - 'load-selection', - {url: url, actionListItem: activeItems[0]} - ); + notjQuery(this.list).trigger('selection-end', {url: url}); }, 250); }