[Rt-commit] r12623 - in rt/branches/3.8-TESTING: share/html/Elements
sartak at bestpractical.com
sartak at bestpractical.com
Thu May 22 15:06:51 EDT 2008
Author: sartak
Date: Thu May 22 15:06:45 2008
New Revision: 12623
Modified:
rt/branches/3.8-TESTING/ (props changed)
rt/branches/3.8-TESTING/share/html/Elements/SelectDate
Log:
r56503 at onn: sartak | 2008-05-22 15:06:32 -0400
Patch from Todd Chapman. fsck.com #7729
Let SelectDate be more sticky by letting callers get around the default.
Also make ShowTime be default on.
Modified: rt/branches/3.8-TESTING/share/html/Elements/SelectDate
==============================================================================
--- rt/branches/3.8-TESTING/share/html/Elements/SelectDate (original)
+++ rt/branches/3.8-TESTING/share/html/Elements/SelectDate Thu May 22 15:06:45 2008
@@ -48,7 +48,7 @@
<script type="text/javascript"><!--
onLoadHook('createCalendarLink("<% $Name %>");');
--></script>
-<input type="text" id="<% $Name %>" name="<% $Name %>" value="<% $Default %>" size="<% $Size %>" />
+<input type="text" id="<% $Name %>" name="<% $Name %>" value="<% $Value %>" size="<% $Size %>" />
<%init>
unless ((defined $Default) or
($current <= 0)) {
@@ -58,6 +58,7 @@
$year+1900,$mon+1,$mday,
$hour,$min);
}
+$Value = $Value || $Default;
unless ($Name) {
$Name = $menu_prefix. "_Date";
@@ -66,10 +67,11 @@
<%args>
-$ShowTime => undef
+$ShowTime => 1
$menu_prefix=>''
$current=>time
$Default => ''
+$Value => ''
$Name => undef
$Size => 16
</%args>
More information about the Rt-commit
mailing list