mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Unnecessary check of trim() twice on TextareaField->Field()
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64557 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
62a28cab64
commit
fda6ab0afb
@ -38,8 +38,9 @@ class TextareaField extends FormField {
|
|||||||
if($this->readonly) {
|
if($this->readonly) {
|
||||||
$attributes = array(
|
$attributes = array(
|
||||||
'id' => $this->id(),
|
'id' => $this->id(),
|
||||||
'class' => 'readonly' . (trim($this->extraClass()) ? (' ' . trim($this->extraClass())) : ''),
|
'class' => 'readonly' . (trim($this->extraClass()) ? (' ' . $this->extraClass()) : ''),
|
||||||
'name' => $this->name,
|
'name' => $this->name,
|
||||||
|
'tabindex' => $this->getTabIndex(),
|
||||||
'readonly' => 'readonly'
|
'readonly' => 'readonly'
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -47,7 +48,7 @@ class TextareaField extends FormField {
|
|||||||
} else {
|
} else {
|
||||||
$attributes = array(
|
$attributes = array(
|
||||||
'id' => $this->id(),
|
'id' => $this->id(),
|
||||||
'class' => (trim($this->extraClass()) ? trim($this->extraClass()) : ''),
|
'class' => (trim($this->extraClass()) ? $this->extraClass() : ''),
|
||||||
'name' => $this->name,
|
'name' => $this->name,
|
||||||
'rows' => $this->rows,
|
'rows' => $this->rows,
|
||||||
'cols' => $this->cols
|
'cols' => $this->cols
|
||||||
|
Loading…
Reference in New Issue
Block a user