mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
ENHANCEMENT Allowing usage of extraClass() in TreeDropdownField
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@67138 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
a037a24148
commit
0ad968090a
@ -48,8 +48,11 @@ class TreeDropdownField extends FormField {
|
||||
|
||||
$id = $this->id();
|
||||
|
||||
$classes = "TreeDropdownField single";
|
||||
if($this->extraClass()) $classes .= ' ' . $this->extraClass();
|
||||
|
||||
return <<<HTML
|
||||
<div id="TreeDropdownField_$id" class="TreeDropdownField single"><input id="$id" type="hidden" name="$this->name" value="$this->value" /><span class="items">$title</span><a href="#" title="open" class="editLink"> </a></div>
|
||||
<div id="TreeDropdownField_$id" class="$classes"><input id="$id" type="hidden" name="$this->name" value="$this->value" /><span class="items">$title</span><a href="#" title="open" class="editLink"> </a></div>
|
||||
HTML;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user