mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Stop using deprecated FormField->getTabIndex()
This commit is contained in:
parent
ac20bfaf99
commit
2ec40f888a
@ -47,7 +47,7 @@ class AjaxUniqueTextField extends TextField {
|
||||
'id' => $this->id(),
|
||||
'name' => $this->getName(),
|
||||
'value' => $this->Value(),
|
||||
'tabindex' => $this->getTabIndex(),
|
||||
'tabindex' => $this->getAttribute('tabindex'),
|
||||
'maxlength' => ($this->maxLength) ? $this->maxLength : null
|
||||
);
|
||||
|
||||
|
@ -102,7 +102,7 @@ class SimpleImageField extends FileField {
|
||||
"type" => "file",
|
||||
"name" => $this->name,
|
||||
"id" => $this->id(),
|
||||
"tabindex" => $this->getTabIndex(),
|
||||
"tabindex" => $this->getAttribute('tabindex'),
|
||||
'disabled' => $this->disabled
|
||||
)
|
||||
);
|
||||
@ -111,7 +111,7 @@ class SimpleImageField extends FileField {
|
||||
"type" => "hidden",
|
||||
"name" => "MAX_FILE_SIZE",
|
||||
"value" => $this->getValidator()->getAllowedMaxFileSize(),
|
||||
"tabindex" => $this->getTabIndex()
|
||||
"tabindex" => $this->getAttribute('tabindex'),
|
||||
)
|
||||
);
|
||||
$html .= "</div>";
|
||||
|
@ -10,7 +10,7 @@
|
||||
<div class="ss-uploadfield-item-info">
|
||||
<label class="ss-uploadfield-fromcomputer ss-ui-button ss-ui-action-constructive" title="<% _t('AssetUploadField.FROMCOMPUTERINFO', 'Upload from your computer') %>" data-icon="drive-upload">
|
||||
<% _t('AssetUploadField.FROMCOMPUTER', 'Choose files from your computer') %>
|
||||
<input id="$id" name="$getName" class="$extraClass ss-uploadfield-fromcomputer-fileinput" data-config="$configString" type="file"<% if $multiple %> multiple="multiple"<% end_if %><% if $TabIndex %> tabindex="$TabIndex"<% end_if %> title="<% _t('AssetUploadField.FROMCOMPUTER', 'Choose files from your computer') %>" />
|
||||
<input id="$id" name="$getName" class="$extraClass ss-uploadfield-fromcomputer-fileinput" data-config="$configString" type="file"<% if $multiple %> multiple="multiple"<% end_if %>> title="<% _t('AssetUploadField.FROMCOMPUTER', 'Choose files from your computer') %>" />
|
||||
</label>
|
||||
|
||||
<div class="clear"><!-- --></div>
|
||||
|
@ -45,7 +45,7 @@
|
||||
</b></label>
|
||||
<label class="ss-uploadfield-fromcomputer ss-ui-button ui-corner-all" title="<% _t('UploadField.FROMCOMPUTERINFO', 'Upload from your computer') %>" data-icon="drive-upload">
|
||||
<% _t('UploadField.FROMCOMPUTER', 'From your computer') %>
|
||||
<input id="$id" name="$getName" class="$extraClass ss-uploadfield-fromcomputer-fileinput" data-config="$configString" type="file"<% if $multiple %> multiple="multiple"<% end_if %><% if $TabIndex %> tabindex="$TabIndex"<% end_if %> />
|
||||
<input id="$id" name="$getName" class="$extraClass ss-uploadfield-fromcomputer-fileinput" data-config="$configString" type="file"<% if $multiple %> multiple="multiple"<% end_if %> />
|
||||
</label>
|
||||
<button class="ss-uploadfield-fromfiles ss-ui-button ui-corner-all" title="<% _t('UploadField.FROMCOMPUTERINFO', 'Select from from files') %>" data-icon="network-cloud"><% _t('UploadField.FROMCOMPUTER', 'From files') %></button>
|
||||
<% if not $config.autoUpload %>
|
||||
|
Loading…
Reference in New Issue
Block a user