Removed obsolete code.
authoranuko <support@anuko.com>
Mon, 8 Jan 2018 18:19:09 +0000 (18:19 +0000)
committeranuko <support@anuko.com>
Mon, 8 Jan 2018 18:19:09 +0000 (18:19 +0000)
WEB-INF/lib/form/TextArea.class.php
WEB-INF/templates/footer.tpl

index a9c0c80..9e8515f 100644 (file)
@@ -50,8 +50,6 @@ class TextArea extends FormElement {
            if (empty($this->id))
                 $this->id = $this->name;
            
-           $js_maxlen = "";
-           
                $html = "\n\t<textarea";
                $html .= " name=\"$this->name\" id=\"$this->id\"";
                
@@ -64,7 +62,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\"";
                }
 
@@ -76,26 +73,7 @@ class TextArea extends FormElement {
                }
                        
                $html .= ">".htmlspecialchars($this->getValue())."</textarea>";
-               if ($js_maxlen) $html = $js_maxlen."\n".$html;
                
                return $html;
        }
-       
-       function getExtraScript() {
-               $s = "<script>\n";
-               $s .= "var isNS4 = (navigator.appName==\"Netscape\")?1:0;\n";
-               $s .= "function validateMaxLenght_".$this->name."(element, event) {\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";
-               $s .= "\tvar x = element.value.replace(re,\"\").length;\n";
-               $s .= "\tif ((x>=maxlength) && ((iKey > 31 && iKey < 1200) || (iKey > 95 && iKey < 106)) && (iKey != 13)) {\n";
-               $s .= "\t\treturn false;\n";
-               $s .= "\t} else {\n";
-               $s .= "\t\treturn true;\n";
-               $s .= "\t}\n}\n";
-               $s .= "</script>\n";
-               return $s;
-       }
 }
index b62eb7d..e35be90 100644 (file)
@@ -12,7 +12,7 @@
       <br>
       <table cellspacing="0" cellpadding="4" width="100%" border="0">
         <tr>
-          <td align="center">&nbsp;Anuko Time Tracker 1.13.11.3731 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+          <td align="center">&nbsp;Anuko Time Tracker 1.13.11.3732 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
             <a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
             <a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
             <a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>