forked from extern/egroupware
enable et2-date-(duration|since)
need to register et2-date-since without _ro prefix, as there is only a r/o variant of the widget (currently)
This commit is contained in:
parent
f9ba6683be
commit
073e7b9d2c
@ -86,8 +86,7 @@ function send_template()
|
||||
$attrs = array_combine($attrs[2], $attrs[3]);
|
||||
|
||||
// add et2-prefix for <select-* or <date-* readonly="true"
|
||||
if (($matches[1] === 'select' || in_array($matches[1].$matches[2], ['date','date-time'])) &&
|
||||
isset($attrs['readonly']) && !in_array($attrs['readonly'], ['false', '0']) /*||
|
||||
if (isset($attrs['readonly']) && !in_array($attrs['readonly'], ['false', '0']) /*||
|
||||
// also add it for untyped/simple <select without search or tags attribute
|
||||
$matches[1] === 'select' && empty($matches[2]) && !isset($attrs['type']) && !isset($attrs['search']) && !isset($attrs['tags'])*/)
|
||||
{
|
||||
|
@ -130,4 +130,4 @@ export class Et2DateSinceReadonly extends Et2DateReadonly
|
||||
}
|
||||
|
||||
// @ts-ignore TypeScript is not recognizing that this widget is a LitElement
|
||||
customElements.define("et2-date-since_ro", Et2DateSinceReadonly);
|
||||
customElements.define("et2-date-since", Et2DateSinceReadonly);
|
Loading…
Reference in New Issue
Block a user