summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rt/FREESIDE_MODIFIED1
-rw-r--r--rt/html/Elements/PageLayout1
-rw-r--r--rt/html/Elements/SelectDate15
3 files changed, 15 insertions, 2 deletions
diff --git a/rt/FREESIDE_MODIFIED b/rt/FREESIDE_MODIFIED
index dc5e2bc2a..e82078992 100644
--- a/rt/FREESIDE_MODIFIED
+++ b/rt/FREESIDE_MODIFIED
@@ -12,6 +12,7 @@ lib/RT/URI/freeside/XMLRPC.pm
html/Elements/Menu
html/Elements/PageLayout
html/Elements/QuickCreate
+ html/Elements/SelectDate
html/Elements/SimpleSearch
html/Elements/Tabs
html/Elements/Footer
diff --git a/rt/html/Elements/PageLayout b/rt/html/Elements/PageLayout
index 3210b4e3e..b9d15e9d3 100644
--- a/rt/html/Elements/PageLayout
+++ b/rt/html/Elements/PageLayout
@@ -127,6 +127,7 @@ a:visited:hover.fsdarkbutton {
filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr='#ff330033',EndColorStr='#ff7e0079')
}
</style>
+<% include('/elements/init_calendar.html') |n %>
<table border=0 cellspacing=0 cellpadding=0 width="100%" height="100%">
<TR HEIGHT="100%">
<TD valign="top">
diff --git a/rt/html/Elements/SelectDate b/rt/html/Elements/SelectDate
index b43f324ac..23df246ce 100644
--- a/rt/html/Elements/SelectDate
+++ b/rt/html/Elements/SelectDate
@@ -45,10 +45,21 @@
%# those contributions and any derivatives thereof.
%#
%# END BPS TAGGED BLOCK }}}
+%# in PageLayout instead, once <% include('/elements/init_calendar.html') |n %>
+<input type="text" id="<% $Name %>" name="<% $Name %>" value="<% $Default %>" size="<% $Size %>" />
+<IMG SRC="<%$fsurl%>images/calendar.png" ID="<% $Name %>_date_button" STYLE="cursor: pointer" TITLE="Select date">
<script type="text/javascript"><!--
- onLoadHook('createCalendarLink("<% $Name %>");');
+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>
-<input type="text" id="<% $Name %>" name="<% $Name %>" value="<% $Default %>" size="<% $Size %>" />
<%init>
unless ((defined $Default) or
($current <= 0)) {