BUGFIX Using $extraClass in AutocompleteTextField

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@60092 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2008-08-07 22:26:49 +00:00
parent 0365bc113f
commit 4f5c4c79fc

View File

@ -20,10 +20,8 @@ class AutocompleteTextField extends TextField {
function Field() { function Field() {
// Requirements::javascript('sapphire/javascript/AutocompleteTextField.js'); // Requirements::javascript('sapphire/javascript/AutocompleteTextField.js');
$extraClass = $this->extraClass();
$attributes = array( $attributes = array(
'class' => "{$this->class} text", 'class' => "{$this->class} text " . $this->extraClass(),
'type' => 'text', 'type' => 'text',
'id' => $this->id(), 'id' => $this->id(),
'name' => $this->name, 'name' => $this->name,