fix ugly null dates
authorjeff <jeff>
Wed, 18 Oct 2006 00:05:34 +0000 (00:05 +0000)
committerjeff <jeff>
Wed, 18 Oct 2006 00:05:34 +0000 (00:05 +0000)
httemplate/elements/tr-input-date-field.html

index eb8eee4..0618fc9 100644 (file)
@@ -7,7 +7,7 @@
 <TR>
   <TD ALIGN="right"><% $label %></TD>
   <TD>
-    <INPUT TYPE="text" NAME="<% $name %>" ID="<% $name %>_text" VALUE="<% time2str($format, $value) %>">
+    <INPUT TYPE="text" NAME="<% $name %>" ID="<% $name %>_text" VALUE="<% ($value eq '') ? '' : time2str($format, $value) %>">
     <IMG SRC="../images/calendar.png" ID="<% $name  %>_button" STYLE="cursor: pointer" TITLE="Select date">
   </TD>
 </TR>