Merge pull request #40 from shakesoda/master

BUGFIX: Fix tab index on textarea fields. FIXES: #6650
This commit is contained in:
Will Rossiter 2011-06-23 19:39:50 -07:00
commit cedb091593

View File

@ -52,7 +52,6 @@ class TextareaField extends FormField {
'id' => $this->id(),
'class' => 'readonly' . ($this->extraClass() ? $this->extraClass() : ''),
'name' => $this->name,
'tabindex' => $this->getTabIndex(),
'readonly' => 'readonly'
);
@ -61,8 +60,7 @@ class TextareaField extends FormField {
$hiddenAttributes = array(
'type' => 'hidden',
'name' => $this->name,
'value' => $value,
'tabindex' => $this->getTabIndex()
'value' => $value
);
$containerSpan = $this->createTag(
@ -79,7 +77,8 @@ class TextareaField extends FormField {
'class' => ($this->extraClass() ? $this->extraClass() : ''),
'name' => $this->name,
'rows' => $this->rows,
'cols' => $this->cols
'cols' => $this->cols,
'tabindex' => $this->getTabIndex()
);
if($this->disabled) $attributes['disabled'] = 'disabled';