mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
fix TypeError this === undefined
This commit is contained in:
parent
fdd6f23560
commit
7dc591b2c9
@ -235,7 +235,7 @@ export const Et2widgetWithSelectMixin = <T extends Constructor<LitElement>>(supe
|
||||
new_options.push({
|
||||
value: et2_readAttrWithDefault(options[i], "value", options[i].textContent),
|
||||
// allow options to contain multiple translated sub-strings eg: {Firstname}.{Lastname}
|
||||
label: options[i].textContent.replace(/{([^}]+)}/g, function(str, p1)
|
||||
label: options[i].textContent.replace(/{([^}]+)}/g, (str, p1) =>
|
||||
{
|
||||
return this.egw().lang(p1);
|
||||
}),
|
||||
|
Loading…
Reference in New Issue
Block a user