Refactoring - renaming things.
authoranuko <support@anuko.com>
Mon, 20 Feb 2017 01:06:53 +0000 (01:06 +0000)
committeranuko <support@anuko.com>
Mon, 20 Feb 2017 01:06:53 +0000 (01:06 +0000)
WEB-INF/lib/form/DateField.class.php
WEB-INF/lib/form/FormElement.class.php
WEB-INF/lib/form/Submit.class.php
WEB-INF/templates/footer.tpl

index 0ed220d..9035bff 100644 (file)
@@ -406,8 +406,8 @@ class DateField extends TextField {
       if ($this->on_change!="")
          $html .= " onchange=\"$this->on_change\"";
 
-      if ($this->mOnClick!="")
-         $html .= " onclick=\"$this->mOnClick\"";
+      if ($this->on_click!="")
+         $html .= " onclick=\"$this->on_click\"";
 
       if ($this->mOnFocus!="")
          $html .= " onfocus=\"$this->mOnFocus\"";
index 7bd28ab..f2d0c92 100644 (file)
@@ -35,9 +35,10 @@ class FormElement {
   var $size = '';       // Control size.
   var $max_length = ''; // Max lenght of text in control.
   var $on_change = '';  // What happens when value of control changes.
+  var $on_click = '';   // What happens when the control is clicked.
+
   // TODO: refactoring ongoing down from here.
-       var $mOnClick           = "";
-       var $mOnKeyPress        = "";
+       var $mOnKeyPress        = ""; // This is only used in TextArea, consider moving out of the base class.
        var $mOnFocus           = "";
        var $mLabel         = "";
        var $mStyle         = "";
@@ -85,7 +86,7 @@ class FormElement {
        function isEnable()     { return $this->mEnabled; }
        
        function setOnChange($str) { $this->on_change = $str; }
-       function setOnClick($str)       { $this->mOnClick = $str; }
+       function setOnClick($str) { $this->on_click = $str; }
 
        function setLocalization($i18n) {
                $this->mI18n = $i18n;
index c4a2c0d..ba3d698 100644 (file)
@@ -51,8 +51,8 @@ class Submit extends FormElement {
                
                $html .= " value=\"$this->value\"";
                
-               if ($this->mOnClick) {
-                       $html .= " onclick=\"".$this->mOnClick."\"";
+               if ($this->on_click) {
+                    $html .= " onclick=\"".$this->on_click."\"";
                }
                
                $html .= ">";
index 1499b22..86d5049 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.10.38.3599 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+          <td align="center">&nbsp;Anuko Time Tracker 1.10.38.3600 | 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>