mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-25 23:39:09 +01:00
fix not set invoker for expand_multiple_rows attribute
This commit is contained in:
parent
fefc822d9c
commit
a45d26511b
@ -203,9 +203,7 @@ export class Et2Select extends Et2InvokerMixin(Et2WidgetWithSelect)
|
||||
return super._callParser(value);
|
||||
}
|
||||
|
||||
set expand_multiple_rows(rows)
|
||||
{
|
||||
if (rows && !this.multiple)
|
||||
private _set_invoker(rows)
|
||||
{
|
||||
this._invokerAction = () => {
|
||||
this.multiple = true;
|
||||
@ -215,6 +213,22 @@ export class Et2Select extends Et2InvokerMixin(Et2WidgetWithSelect)
|
||||
this._invokerTitle = egw.lang('Switch to multiple');
|
||||
this._invokerLabel = '+';
|
||||
}
|
||||
|
||||
transformAttributes(attrs)
|
||||
{
|
||||
if (attrs.expand_multiple_rows)
|
||||
{
|
||||
this._set_invoker(attrs.expand_multiple_rows);
|
||||
}
|
||||
super.transformAttributes(attrs);
|
||||
}
|
||||
|
||||
set expand_multiple_rows(rows)
|
||||
{
|
||||
if (rows && !this.multiple)
|
||||
{
|
||||
this._set_invoker(rows);
|
||||
}
|
||||
else
|
||||
{
|
||||
this._invokerLabel = undefined;
|
||||
|
Loading…
Reference in New Issue
Block a user