mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 01:43:47 +01:00
switch simple/untyped r/w selectboxes on to use web-components
This commit is contained in:
parent
0fb32b7a6a
commit
5ff64259ee
@ -86,9 +86,9 @@ function send_template()
|
|||||||
$attrs = array_combine($attrs[2], $attrs[3]);
|
$attrs = array_combine($attrs[2], $attrs[3]);
|
||||||
|
|
||||||
// add et2-prefix for <select-* or <date-* readonly="true"
|
// add et2-prefix for <select-* or <date-* readonly="true"
|
||||||
if (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
|
// 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'])*/)
|
$matches[1] === 'select' && empty($matches[2]) && !isset($attrs['type']) && !isset($attrs['search']) && !isset($attrs['tags']))
|
||||||
{
|
{
|
||||||
return '<et2-'.$matches[1].$matches[2].' '.$matches[3].'></et2-'.$matches[1].$matches[2].'>';
|
return '<et2-'.$matches[1].$matches[2].' '.$matches[3].'></et2-'.$matches[1].$matches[2].'>';
|
||||||
}
|
}
|
||||||
@ -141,4 +141,4 @@ function send_template()
|
|||||||
echo $str;
|
echo $str;
|
||||||
|
|
||||||
exit; // stop further processing eg. redirect to login
|
exit; // stop further processing eg. redirect to login
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user