servermgrv2 init...
This commit is contained in:
parent
dfa296c08e
commit
524c25fdd9
@ -110,7 +110,7 @@ function getFieldIndex_Row_BoardConfigHelper($field, $entity, array $fieldFilter
|
||||
default:
|
||||
if (in_array($field, $fieldFilters)) {
|
||||
$attributes["onChange"] = sprintf('location.href="%s/toggle/%s/%s?%s="+this.options[this.selectedIndex].value', current_url(), $entity->getPrimaryKey(), $field, $field);
|
||||
return getFieldFilter_BoardConfigHelper($field, $entity->$field, $fieldFormOptions, $attributes);
|
||||
return getFieldFilter_BoardConfigHelper($field, $entity->$field, $fieldFormOptions, [...$attributes, 'style' => 'width:100%']);
|
||||
}
|
||||
return getFieldView_BoardConfigHelper($field, $entity, $fieldFormOptions, $attributes);
|
||||
break;
|
||||
|
||||
@ -127,7 +127,7 @@ function getFieldIndex_Row_BoardHelper($field, $entity, array $fieldFilters, $fi
|
||||
default:
|
||||
if (in_array($field, $fieldFilters)) {
|
||||
$attributes["onChange"] = sprintf('location.href="%s/toggle/%s/%s?%s="+this.options[this.selectedIndex].value', current_url(), $entity->getPrimaryKey(), $field, $field);
|
||||
return getFieldFilter_BoardHelper($field, $entity->$field, $fieldFormOptions, $attributes);
|
||||
return getFieldFilter_BoardHelper($field, $entity->$field, $fieldFormOptions, [...$attributes, 'style' => 'width:100%']);
|
||||
}
|
||||
return getFieldView_BoardHelper($field, $entity, $fieldFormOptions, $attributes);
|
||||
break;
|
||||
|
||||
@ -100,7 +100,7 @@ function getFieldIndex_Row_UserSNSHelper($field, $entity, array $fieldFilters, $
|
||||
default:
|
||||
if (in_array($field, $fieldFilters)) {
|
||||
$attributes["onChange"] = sprintf('location.href="%s/toggle/%s/%s?%s="+this.options[this.selectedIndex].value', current_url(), $entity->getPrimaryKey(), $field, $field);
|
||||
return getFieldFilter_UserSNSHelper($field, $entity->$field, $fieldFormOptions, $attributes);
|
||||
return getFieldFilter_UserSNSHelper($field, $entity->$field, $fieldFormOptions, [...$attributes, 'style' => 'width:100%']);
|
||||
}
|
||||
return getFieldView_UserSNSHelper($field, $entity, $fieldFormOptions, $attributes);
|
||||
break;
|
||||
|
||||
@ -106,7 +106,7 @@ function getFieldIndex_Row_UserHelper($field, $entity, array $fieldFilters, $fie
|
||||
default:
|
||||
if (in_array($field, $fieldFilters)) {
|
||||
$attributes["onChange"] = sprintf('location.href="%s/toggle/%s/%s?%s="+this.options[this.selectedIndex].value', current_url(), $entity->getPrimaryKey(), $field, $field);
|
||||
return getFieldFilter_UserHelper($field, $entity->$field, $fieldFormOptions, $attributes);
|
||||
return getFieldFilter_UserHelper($field, $entity->$field, $fieldFormOptions, [...$attributes, 'style' => 'width:100%']);
|
||||
}
|
||||
return getFieldView_UserHelper($field, $entity, $fieldFormOptions, $attributes);
|
||||
break;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user