summaryrefslogtreecommitdiff
path: root/rt/share/html/Elements/SelectDate
diff options
context:
space:
mode:
authorivan <ivan>2010-03-20 22:14:02 +0000
committerivan <ivan>2010-03-20 22:14:02 +0000
commit10e462292b42813dce6e1034064c55c7fddd42a4 (patch)
tree0d283c775d08bf12c211a89496927ac51ae32d03 /rt/share/html/Elements/SelectDate
parent55e2a98988c76425ec2dac583b91410eaf835659 (diff)
more RT integration / reskin / 2.1, RT#6640
Diffstat (limited to 'rt/share/html/Elements/SelectDate')
-rwxr-xr-xrt/share/html/Elements/SelectDate17
1 files changed, 14 insertions, 3 deletions
diff --git a/rt/share/html/Elements/SelectDate b/rt/share/html/Elements/SelectDate
index 32a173db4..183086f3d 100755
--- a/rt/share/html/Elements/SelectDate
+++ b/rt/share/html/Elements/SelectDate
@@ -45,10 +45,21 @@
%# those contributions and any derivatives thereof.
%#
%# END BPS TAGGED BLOCK }}}
-<script type="text/javascript"><!--
- onLoadHook('createCalendarLink("<% $Name %>");');
---></script>
+%# in PageLayout instead, once <% include('/elements/init_calendar.html') |n %>
<input type="text" id="<% $Name %>" name="<% $Name %>" value="<% $Value %>" size="<% $Size %>" />
+<IMG SRC="<%$fsurl%>images/calendar.png" ID="<% $Name %>_date_button" STYLE="cursor: pointer" TITLE="Select date">
+<script type="text/javascript">
+Calendar.setup({
+ inputField: "<%$Name%>",
+% if ( defined($ShowTime) && $ShowTime ) {
+ ifFormat: "%Y-%m-%d %H:%M",
+ showsTime: true,
+% } else {
+ ifFormat: "%Y-%m-%d",
+% }
+ button: "<%$Name%>_date_button",
+});
+</script>
<%init>
unless ((defined $Default) or
($current <= 0)) {