mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-08 22:40:23 +01:00
Api: Fix legacy onchange in nextmatch got nextmatch instead of changed widget
This commit is contained in:
parent
834141bdd0
commit
6793f62c0f
@ -3935,7 +3935,13 @@ export class et2_nextmatch_header_bar extends et2_DOMWidget implements et2_INext
|
|||||||
let change = function(_node)
|
let change = function(_node)
|
||||||
{
|
{
|
||||||
// Call previously set change function
|
// Call previously set change function
|
||||||
const result = widget_change?.call(_widget, _node, header.nextmatch, _widget);
|
const params = [_node, header.nextmatch, _widget];
|
||||||
|
if(widget_change.toString().startsWith("function (ev, widget) {\n // Dump the executed code for debugging"))
|
||||||
|
{
|
||||||
|
// Legacy - do not pass the nextmatch, it will override widget
|
||||||
|
params.splice(1, 1);
|
||||||
|
}
|
||||||
|
const result = widget_change?.apply(_widget, params);
|
||||||
|
|
||||||
// Find current value in activeFilters
|
// Find current value in activeFilters
|
||||||
let entry = header.nextmatch.activeFilters;
|
let entry = header.nextmatch.activeFilters;
|
||||||
|
Loading…
Reference in New Issue
Block a user