X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/61efd9d023ae34c1290ef2e1ae25829c509caaee..ecd15819788a42f6dfe46949475e45ddb66df436:/WEB-INF/lib/form/TextArea.class.php diff --git a/WEB-INF/lib/form/TextArea.class.php b/WEB-INF/lib/form/TextArea.class.php index 728f4629..a9c0c800 100644 --- a/WEB-INF/lib/form/TextArea.class.php +++ b/WEB-INF/lib/form/TextArea.class.php @@ -29,18 +29,16 @@ import('form.FormElement'); class TextArea extends FormElement { - var $mPassword = false; var $mColumns = ""; var $mRows = ""; - var $class = 'TextArea'; var $mOnKeyPress = ""; - function __construct($name,$value="") - { - $this->name = $name; - $this->value = $value; - } - + function __construct($name) + { + $this->class = 'TextArea'; + $this->name = $name; + } + function setColumns($value) { $this->mColumns = $value; } function getColumns() { return $this->mColumns; } @@ -49,7 +47,8 @@ class TextArea extends FormElement { function getHtml() { - if ($this->id=="") $this->id = $this->mName; + if (empty($this->id)) + $this->id = $this->name; $js_maxlen = "";