]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/form/TextArea.class.php
Refactoring - renamed a couple of variables.
[timetracker.git] / WEB-INF / lib / form / TextArea.class.php
index 6b3b5ee76fbdbd912daad62db9a92d1d124a055f..89eef4e58c69172868e7c40a51f891130a8eabf1 100644 (file)
@@ -62,11 +62,11 @@ class TextArea extends FormElement {
                if ($this->mRows!="")
                   $html .= " rows=\"$this->mRows\"";
                   
-               if ($this->mMaxLength!="") {
+               if ($this->max_length!="") {
                        if ($this->mOnKeyPress) $this->mOnKeyPress .= ";";
                        $this->mOnKeyPress .= "return validateMaxLenght_".$this->name."(this, event);";
                        $js_maxlen = $this->getExtraScript();
-                       $html .= " maxlength=\"$this->mMaxLength\"";
+                       $html .= " maxlength=\"$this->max_length\"";
                }
 
                if ($this->mStyle!="")
@@ -86,7 +86,7 @@ class TextArea extends FormElement {
                $s = "<script>\n";
                $s .= "var isNS4 = (navigator.appName==\"Netscape\")?1:0;\n";
                $s .= "function validateMaxLenght_".$this->name."(element, event) {\n";
-               $s .= "\tmaxlength=".$this->mMaxLength.";\n";
+               $s .= "\tmaxlength=".$this->max_length.";\n";
                $s .= "\tvar iKey = (!isNS4?event.keyCode:event.which);\n";
                //$s .= "alert(iKey);";
                $s .= "\tvar re = new RegExp(\"".'\r\n'."\",\"g\");\n";