diff options
author | ivan <ivan> | 2009-07-26 19:36:08 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-07-26 19:36:08 +0000 |
commit | f83f9129cc2e67d20ef0d512cce9f0b327e26052 (patch) | |
tree | 5fe16fc5bba4e75170d310cd99080226534a9d27 | |
parent | b717c77e7af226f0f525df39fac49f11b3facd4c (diff) |
fix the date picker in RT to use jscalendar instead of an HTML popup (that had acquired the page header, eek), RT#1682
-rw-r--r-- | rt/FREESIDE_MODIFIED | 1 | ||||
-rw-r--r-- | rt/html/Elements/PageLayout | 1 | ||||
-rw-r--r-- | rt/html/Elements/SelectDate | 15 |
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)) { |