BUGFIX: added ID to literal field html to allow the js validation to apply

This commit is contained in:
Will Rossiter 2009-10-27 09:38:38 +00:00
parent c073596b68
commit 3d9b764987

View File

@ -21,7 +21,7 @@ class EditableLiteralField extends EditableFormField {
function getFormField() {
return new LiteralField("LiteralField[$this->ID]",
"<div class='field text'><label class='left'>$this->Title</label><div class='middleColumn literalFieldArea'>". $this->getSetting('Content') ."</div></div>");
"<div id='$this->Name' class='field text'><label class='left'>$this->Title</label><div class='middleColumn literalFieldArea'>". $this->getSetting('Content') ."</div></div>");
}
}
?>