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:
Ingo Schommer 2008-12-02 03:30:56 +00:00 committed by Sam Minnee
parent a037a24148
commit 0ad968090a

View File

@ -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">&nbsp;</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">&nbsp;</a></div>
HTML;
}