mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00: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(),
|
'id' => $this->id(),
|
||||||
'name' => $this->getName(),
|
'name' => $this->getName(),
|
||||||
'value' => $this->Value(),
|
'value' => $this->Value(),
|
||||||
'tabindex' => $this->getTabIndex(),
|
'tabindex' => $this->getAttribute('tabindex'),
|
||||||
'maxlength' => ($this->maxLength) ? $this->maxLength : null
|
'maxlength' => ($this->maxLength) ? $this->maxLength : null
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ class SimpleImageField extends FileField {
|
|||||||
"type" => "file",
|
"type" => "file",
|
||||||
"name" => $this->name,
|
"name" => $this->name,
|
||||||
"id" => $this->id(),
|
"id" => $this->id(),
|
||||||
"tabindex" => $this->getTabIndex(),
|
"tabindex" => $this->getAttribute('tabindex'),
|
||||||
'disabled' => $this->disabled
|
'disabled' => $this->disabled
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@ -111,7 +111,7 @@ class SimpleImageField extends FileField {
|
|||||||
"type" => "hidden",
|
"type" => "hidden",
|
||||||
"name" => "MAX_FILE_SIZE",
|
"name" => "MAX_FILE_SIZE",
|
||||||
"value" => $this->getValidator()->getAllowedMaxFileSize(),
|
"value" => $this->getValidator()->getAllowedMaxFileSize(),
|
||||||
"tabindex" => $this->getTabIndex()
|
"tabindex" => $this->getAttribute('tabindex'),
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$html .= "</div>";
|
$html .= "</div>";
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<div class="ss-uploadfield-item-info">
|
<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">
|
<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') %>
|
<% _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>
|
</label>
|
||||||
|
|
||||||
<div class="clear"><!-- --></div>
|
<div class="clear"><!-- --></div>
|
||||||
|
@ -45,7 +45,7 @@
|
|||||||
</b></label>
|
</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">
|
<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') %>
|
<% _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>
|
</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>
|
<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 %>
|
<% if not $config.autoUpload %>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user