From 16307e556207a7e2a0464e6beff6b5630e70effd Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Wed, 23 Sep 2009 03:21:03 +0000 Subject: [PATCH] MINOR: removed Text Length as width of the fields are overridden by css styles --- code/editor/EditableTextField.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/code/editor/EditableTextField.php b/code/editor/EditableTextField.php index a9b8358..39515d4 100755 --- a/code/editor/EditableTextField.php +++ b/code/editor/EditableTextField.php @@ -18,13 +18,11 @@ class EditableTextField extends EditableFormField { // eventually replace hard-coded "Fields"? $baseName = "Fields[$this->ID]"; - $size = ($this->getSetting('Size')) ? $this->getSetting('Size') : '32'; - $minLength = ($this->getSetting('MinLength')) ? $this->getSetting('MinLength') : '0'; - $maxLength = ($this->getSetting('MaxLength')) ? $this->getSetting('MaxLength') : '32'; + $minLength = ($this->getSetting('MinLength')) ? $this->getSetting('MinLength') : ''; + $maxLength = ($this->getSetting('MaxLength')) ? $this->getSetting('MaxLength') : ''; $rows = ($this->getSetting('Rows')) ? $this->getSetting('Rows') : '1'; $extraFields = new FieldSet( - new TextField($baseName . "[CustomSettings][Size]", _t('EditableTextField.TEXTBOXLENGTH', 'Length of text box'), $size), new FieldGroup(_t('EditableTextField.TEXTLENGTH', 'Text length'), new TextField($baseName . "[CustomSettings][MinLength]", "", $minLength), new TextField($baseName . "[CustomSettings][MaxLength]", " - ", $maxLength)