X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/785d404c84c153bda7d45d3aedfefa81985703b3..6e2b1ec1880cebedef5a1ca380820ad0d40d06a2:/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 ea1009a8..be884f0d 100644
--- a/WEB-INF/lib/form/TextArea.class.php
+++ b/WEB-INF/lib/form/TextArea.class.php
@@ -29,42 +29,25 @@
import('form.FormElement');
class TextArea extends FormElement {
- var $mColumns = "";
- var $mRows = "";
- var $class = 'TextArea';
var $mOnKeyPress = "";
- function __construct($name,$value="")
- {
- $this->name = $name;
- $this->value = $value;
- }
-
- function setColumns($value) { $this->mColumns = $value; }
- function getColumns() { return $this->mColumns; }
+ function __construct($name)
+ {
+ $this->class = 'TextArea';
+ $this->name = $name;
+ }
- function setRows($value) { $this->mRows = $value; }
- function getRows() { return $this->mRows; }
-
function getHtml() {
- if ($this->id=="") $this->id = $this->mName;
-
- $js_maxlen = "";
+ if (empty($this->id))
+ $this->id = $this->name;
$html = "\n\t";
- if ($js_maxlen) $html = $js_maxlen."\n".$html;
return $html;
}
-
- function getExtraScript() {
- $s = "\n";
- return $s;
- }
}