X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2Fform%2FTextArea.class.php;h=be884f0d88d1a2628c623b1db16b9df2d26ec601;hb=fcb232f2236dd0105525b0239fa7b212aaf72a2a;hp=66101b98d9affb210b06caef49760e2463978fc5;hpb=cd5e077ecb497431decde4835138b877d63b261c;p=timetracker.git
diff --git a/WEB-INF/lib/form/TextArea.class.php b/WEB-INF/lib/form/TextArea.class.php
index 66101b98..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 $mOnKeyPress = "";
- function __construct($name, $value = '')
+ function __construct($name)
{
$this->class = 'TextArea';
$this->name = $name;
- $this->value = $value;
}
-
- function setColumns($value) { $this->mColumns = $value; }
- function getColumns() { return $this->mColumns; }
- 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;
- }
}