ENHANCEMENT: Added TabIndex to FormActions. Ticket: #4905. PATCH: via keeny

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@97011 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Will Rossiter 2010-01-15 02:11:10 +00:00 committed by Sam Minnee
parent 30892c1325
commit 5ce693ce40

View File

@ -77,7 +77,8 @@ class FormAction extends FormField {
'class' => 'action' . ($this->extraClass() ? $this->extraClass() : ''),
'id' => $this->id(),
'type' => 'submit',
'name' => $this->action
'name' => $this->action,
'tabindex' => $this->getTabIndex()
);
if($this->isReadonly()) {
$attributes['disabled'] = 'disabled';
@ -91,7 +92,8 @@ class FormAction extends FormField {
'id' => $this->id(),
'type' => 'submit',
'name' => $this->action,
'value' => ($this->dontEscape) ? $this->Title() : $this->attrTitle()
'value' => ($this->dontEscape) ? $this->Title() : $this->attrTitle(),
'tabindex' => $this->getTabIndex()
);
if($this->isReadonly()) {
$attributes['disabled'] = 'disabled';