mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
30892c1325
commit
5ce693ce40
@ -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';
|
||||
|
Loading…
x
Reference in New Issue
Block a user