mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
Api: Remove disused ajax-select customfield type
This commit is contained in:
parent
989f974da0
commit
02e35d609f
@ -106,7 +106,6 @@ class admin_customfields
|
||||
'select-account' => array('cf_len' => false, 'cf_rows' => true),
|
||||
'htmlarea' => array('cf_len' => true, 'cf_rows' => true),
|
||||
'button' => array('cf_values' => true),
|
||||
'ajax_select' => array('cf_values' => true),
|
||||
'radio' => array('cf_values' => true),
|
||||
'checkbox' => array('cf_values' => true),
|
||||
'filemanager' => array('cf_values' => true),
|
||||
|
@ -663,22 +663,6 @@ export class et2_customfields_list extends et2_valueWidget implements et2_IDetac
|
||||
return true;
|
||||
}
|
||||
|
||||
_setup_ajax_select( field_name, field, attrs)
|
||||
{
|
||||
const attributes = ['get_rows', 'get_title', 'id_field', 'template'];
|
||||
if(field.values)
|
||||
{
|
||||
for(let i = 0; i < attributes.length; i++)
|
||||
{
|
||||
if(typeof field.values[attributes[i]] !== 'undefined')
|
||||
{
|
||||
attrs[attributes[i]] = field.values[attributes[i]];
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
_setup_serial(field_name, field, attrs)
|
||||
{
|
||||
delete (attrs.label);
|
||||
|
@ -39,7 +39,6 @@ class Customfields extends Transformer
|
||||
'label' => 'Label',
|
||||
'header' => 'Header',
|
||||
'select' => 'Selectbox',
|
||||
'ajax_select' => 'Search',
|
||||
'radio' => 'Radiobutton',
|
||||
'checkbox' => 'Checkbox',
|
||||
'date' => 'Date',
|
||||
@ -379,7 +378,10 @@ class Customfields extends Transformer
|
||||
break;
|
||||
|
||||
default:
|
||||
if (substr($type, 0, 7) !== 'select-' && $type != 'ajax_select') break;
|
||||
if(substr($type, 0, 7) !== 'select-')
|
||||
{
|
||||
break;
|
||||
}
|
||||
// fall-through for all select-* widgets
|
||||
case 'select':
|
||||
$widget->attrs['multiple'] = $field['rows'] > 1;
|
||||
|
Loading…
Reference in New Issue
Block a user