From 0ad968090ac1f084f20da28b9b597d2b09097917 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 2 Dec 2008 03:30:56 +0000 Subject: [PATCH] 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 --- forms/TreeDropdownField.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/forms/TreeDropdownField.php b/forms/TreeDropdownField.php index ff78b27fe..bdfd3ca12 100755 --- a/forms/TreeDropdownField.php +++ b/forms/TreeDropdownField.php @@ -48,8 +48,11 @@ class TreeDropdownField extends FormField { $id = $this->id(); + $classes = "TreeDropdownField single"; + if($this->extraClass()) $classes .= ' ' . $this->extraClass(); + return <<$title  +
$title 
HTML; }