Permalink
Browse files

MINOR Stop using deprecated FormField->getTabIndex()

  • Loading branch information...
1 parent ac20bfa commit 2ec40f888a75ba69473f0ce7d5f165d86e032c4b @chillu chillu committed Mar 8, 2012
Showing with 5 additions and 5 deletions.
  1. +1 −1 forms/AjaxUniqueTextField.php
  2. +2 −2 forms/SimpleImageField.php
  3. +1 −1 templates/AssetUploadField.ss
  4. +1 −1 templates/UploadField.ss
@@ -47,7 +47,7 @@ function Field() {
'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 @@ function Field() {
"type" => "file",
"name" => $this->name,
"id" => $this->id(),
- "tabindex" => $this->getTabIndex(),
+ "tabindex" => $this->getAttribute('tabindex'),
'disabled' => $this->disabled
)
);
@@ -111,7 +111,7 @@ function Field() {
"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>
View
@@ -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 %>

0 comments on commit 2ec40f8

Please sign in to comment.