[freeside-commits] freeside/rt/share/html/Elements SelectDate, 1.1.1.1, 1.2
Ivan,,,
ivan at wavetail.420.am
Sat Mar 20 15:11:39 PDT 2010
Update of /home/cvs/cvsroot/freeside/rt/share/html/Elements
In directory wavetail.420.am:/tmp/cvs-serv30788/rt/share/html/Elements
Modified Files:
SelectDate
Log Message:
more RT integration / reskin / 2.1, RT#6640
Index: SelectDate
===================================================================
RCS file: /home/cvs/cvsroot/freeside/rt/share/html/Elements/SelectDate,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -w -d -r1.1.1.1 -r1.2
--- SelectDate 31 Dec 2009 13:14:14 -0000 1.1.1.1
+++ SelectDate 20 Mar 2010 22:11:37 -0000 1.2
@@ -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)) {
More information about the freeside-commits
mailing list