Refactoring - removed unused stuff.
[timetracker.git] / WEB-INF / lib / form / DateField.class.php
index 9035bff..d233138 100644 (file)
@@ -81,8 +81,7 @@ class DateField extends TextField {
     }
   }
 
-  function toStringControl()  {
-    if (!$this->isRenderable()) return "";
+  function toStringControl() {
 
     if (!$this->isEnable()) {
       $html = htmlspecialchars($this->getValue()).
@@ -398,8 +397,8 @@ class DateField extends TextField {
       if ($this->size!="")
         $html .= " size=\"$this->size\"";
 
-      if ($this->mStyle!="")
-         $html .= " style=\"$this->mStyle\"";
+      if ($this->style!="")
+         $html .= " style=\"$this->style\"";
 
         $html .= " maxlength=\"50\"";
 
@@ -409,9 +408,6 @@ class DateField extends TextField {
       if ($this->on_click!="")
          $html .= " onclick=\"$this->on_click\"";
 
-      if ($this->mOnFocus!="")
-         $html .= " onfocus=\"$this->mOnFocus\"";
-
       $html .= " value=\"".htmlspecialchars($this->getValue())."\"";
       $html .= ">";