X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/4fdb2cd8b1c8990a7ea8ed40b275dc51174e6585..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 5d484668..c6e8d1ff 100644 --- a/WEB-INF/lib/form/TextArea.class.php +++ b/WEB-INF/lib/form/TextArea.class.php @@ -40,16 +40,12 @@ class TextArea extends FormElement { } 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\tname\" id=\"$this->id\""; @@ -63,7 +59,6 @@ class TextArea extends FormElement { if ($this->max_length!="") { if ($this->mOnKeyPress) $this->mOnKeyPress .= ";"; $this->mOnKeyPress .= "return validateMaxLenght_".$this->name."(this, event);"; - $js_maxlen = $this->getExtraScript(); $html .= " maxlength=\"$this->max_length\""; } @@ -75,26 +70,7 @@ class TextArea extends FormElement { } $html .= ">".htmlspecialchars($this->getValue()).""; - if ($js_maxlen) $html = $js_maxlen."\n".$html; return $html; } - - function getExtraScript() { - $s = "\n"; - return $s; - } }