Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR: Include the title attribute on tree and readonly fields.

  • Loading branch information...
commit 9e4b5262137455530dd80953dba58299cb24b25e 1 parent d9c7bb8
Andrew Short ajshort authored chillu committed
1  forms/TreeMultiselectField.php
View
@@ -114,6 +114,7 @@ function Field($properties = array()) {
'class' => 'TreeDropdownField multiple' . ($this->extraClass() ? " {$this->extraClass()}" : '') . ($this->showSearch ? " searchable" : ''),
'data-url-tree' => $this->form ? $this->Link('tree') : "",
'data-title' => $title,
+ 'title' => $this->getDescription()
),
$this->createTag (
'input',
6 templates/forms/FormField.ss
View
@@ -1,5 +1,9 @@
<% if isReadonly %>
- <span id="$ID"<% if extraClass %> class="$extraClass"<% end_if %>>$Value</span>
+ <span id="$ID"
+ <% if extraClass %>class="$extraClass"<% end_if %>
+ <% if $Description %>title="$Description"<% end_if %>>
+ $Value
+ </span>
<% else %>
<input $AttributesHTML>
<% end_if %>
7 templates/forms/TreeDropdownField.ss
View
@@ -1,3 +1,8 @@
-<div id="TreeDropdownField_$ID" class="TreeDropdownField single<% if extraClass %> $extraClass<% end_if %><% if ShowSearch %> searchable<% end_if %>" data-url-tree="$Link(tree)" data-title="$Title"<% if Metadata %> data-metadata="$Metadata"<% end_if %>>
+<div id="TreeDropdownField_$ID"
+ class="TreeDropdownField single<% if extraClass %> $extraClass<% end_if %><% if ShowSearch %> searchable<% end_if %>"
+ data-url-tree="$Link(tree)"
+ data-title="$Title"
+ <% if Description %>title="$Description"<% end_if %>
+ <% if Metadata %>data-metadata="$Metadata"<% end_if %>>
<input id="$ID" type="hidden" name="$Name" value="$Value" />
</div>
Please sign in to comment.
Something went wrong with that request. Please try again.