Resumed refactoring forms, hopefully without breaking reports this time.
[timetracker.git] / WEB-INF / lib / form / DateField.class.php
index aa8a149..db59a3b 100644 (file)
@@ -39,7 +39,7 @@ class DateField extends TextField {
 
   var $lCalendarButtons = array('today'=>'Today', 'close'=>'Close');
 
-  function DateField($name) {
+  function __construct($name) {
     $this->mName  = $name;
     $this->mDateObj  = new DateAndTime();
 
@@ -406,9 +406,6 @@ class DateField extends TextField {
       if ($this->mOnChange!="")
          $html .= " onchange=\"$this->mOnChange\"";
 
-      if ($this->mOnBlur!="")
-         $html .= " onblur=\"$this->mOnBlur\"";
-
       if ($this->mOnClick!="")
          $html .= " onclick=\"$this->mOnClick\"";
 
@@ -427,4 +424,3 @@ class DateField extends TextField {
     return $html;
   }
 }
-?>
\ No newline at end of file