mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +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),
|
'select-account' => array('cf_len' => false, 'cf_rows' => true),
|
||||||
'htmlarea' => array('cf_len' => true, 'cf_rows' => true),
|
'htmlarea' => array('cf_len' => true, 'cf_rows' => true),
|
||||||
'button' => array('cf_values' => true),
|
'button' => array('cf_values' => true),
|
||||||
'ajax_select' => array('cf_values' => true),
|
|
||||||
'radio' => array('cf_values' => true),
|
'radio' => array('cf_values' => true),
|
||||||
'checkbox' => array('cf_values' => true),
|
'checkbox' => array('cf_values' => true),
|
||||||
'filemanager' => 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;
|
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)
|
_setup_serial(field_name, field, attrs)
|
||||||
{
|
{
|
||||||
delete (attrs.label);
|
delete (attrs.label);
|
||||||
|
@ -39,7 +39,6 @@ class Customfields extends Transformer
|
|||||||
'label' => 'Label',
|
'label' => 'Label',
|
||||||
'header' => 'Header',
|
'header' => 'Header',
|
||||||
'select' => 'Selectbox',
|
'select' => 'Selectbox',
|
||||||
'ajax_select' => 'Search',
|
|
||||||
'radio' => 'Radiobutton',
|
'radio' => 'Radiobutton',
|
||||||
'checkbox' => 'Checkbox',
|
'checkbox' => 'Checkbox',
|
||||||
'date' => 'Date',
|
'date' => 'Date',
|
||||||
@ -379,7 +378,10 @@ class Customfields extends Transformer
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
if (substr($type, 0, 7) !== 'select-' && $type != 'ajax_select') break;
|
if(substr($type, 0, 7) !== 'select-')
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
// fall-through for all select-* widgets
|
// fall-through for all select-* widgets
|
||||||
case 'select':
|
case 'select':
|
||||||
$widget->attrs['multiple'] = $field['rows'] > 1;
|
$widget->attrs['multiple'] = $field['rows'] > 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user