[freeside-commits] freeside/rt/html/Elements PageLayout, 1.18, 1.19 SelectDate, 1.1.1.6, 1.2
Ivan,,,
ivan at wavetail.420.am
Sun Jul 26 12:36:10 PDT 2009
Update of /home/cvs/cvsroot/freeside/rt/html/Elements
In directory wavetail.420.am:/tmp/cvs-serv27708/html/Elements
Modified Files:
PageLayout SelectDate
Log Message:
fix the date picker in RT to use jscalendar instead of an HTML popup (that had acquired the page header, eek), RT#1682
Index: PageLayout
===================================================================
RCS file: /home/cvs/cvsroot/freeside/rt/html/Elements/PageLayout,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- PageLayout 13 Jul 2009 03:24:44 -0000 1.18
+++ PageLayout 26 Jul 2009 19:36:07 -0000 1.19
@@ -127,6 +127,7 @@
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">
Index: SelectDate
===================================================================
RCS file: /home/cvs/cvsroot/freeside/rt/html/Elements/SelectDate,v
retrieving revision 1.1.1.6
retrieving revision 1.2
diff -u -d -r1.1.1.6 -r1.2
--- SelectDate 2 Mar 2008 04:11:05 -0000 1.1.1.6
+++ SelectDate 26 Jul 2009 19:36:08 -0000 1.2
@@ -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)) {
More information about the freeside-commits
mailing list