X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/61efd9d023ae34c1290ef2e1ae25829c509caaee..f037a5416ac13e73d775f3c997afe8dfc4917339:/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..c6e8d1ff 100644
--- a/WEB-INF/lib/form/TextArea.class.php
+++ b/WEB-INF/lib/form/TextArea.class.php
@@ -29,29 +29,23 @@
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 setColumns($value) { $this->mColumns = $value; }
- function getColumns() { return $this->mColumns; }
+ function __construct($name)
+ {
+ $this->class = 'TextArea';
+ $this->name = $name;
+ }
+ function setColumns($value) { $this->mColumns = $value; }
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;
- }
}