[freeside-commits] freeside/httemplate/elements tr-input-beginning_ending.html, 1.6, 1.6.2.1
Ivan,,,
ivan at wavetail.420.am
Fri Oct 5 12:45:13 PDT 2007
Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail:/tmp/cvs-serv16683
Modified Files:
Tag: FREESIDE_1_7_BRANCH
tr-input-beginning_ending.html
Log Message:
fix date selection on advanced invoice report, or future places where date selection component is included multiple times
Index: tr-input-beginning_ending.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/tr-input-beginning_ending.html,v
retrieving revision 1.6
retrieving revision 1.6.2.1
diff -u -d -r1.6 -r1.6.2.1
--- tr-input-beginning_ending.html 14 Feb 2007 08:48:35 -0000 1.6
+++ tr-input-beginning_ending.html 5 Oct 2007 19:45:04 -0000 1.6.2.1
@@ -1,7 +1,9 @@
-<LINK REL="stylesheet" TYPE="text/css" HREF="<%$fsurl%>elements/calendar-win2k-2.css" TITLE="win2k-2">
-<SCRIPT TYPE="text/javascript" SRC="<%$fsurl%>elements/calendar_stripped.js"></SCRIPT>
-<SCRIPT TYPE="text/javascript" SRC="<%$fsurl%>elements/calendar-en.js"></SCRIPT>
-<SCRIPT TYPE="text/javascript" SRC="<%$fsurl%>elements/calendar-setup.js"></SCRIPT>
+% unless ( $m->count == $previous_request_count ) {
+ <LINK REL="stylesheet" TYPE="text/css" HREF="<%$fsurl%>elements/calendar-win2k-2.css" TITLE="win2k-2">
+ <SCRIPT TYPE="text/javascript" SRC="<%$fsurl%>elements/calendar_stripped.js"></SCRIPT>
+ <SCRIPT TYPE="text/javascript" SRC="<%$fsurl%>elements/calendar-en.js"></SCRIPT>
+ <SCRIPT TYPE="text/javascript" SRC="<%$fsurl%>elements/calendar-setup.js"></SCRIPT>
+% }
<TR>
<TD ALIGN="right">From date: </TD>
@@ -43,6 +45,11 @@
</TD>
</TR>
+<%once>
+
+my $previous_request_count = '';
+
+</%once>
<%init>
my %opt = @_;
@@ -61,3 +68,8 @@
}
</%init>
+<%cleanup>
+
+$previous_request_count = $m->count;
+
+</%cleanup>
More information about the freeside-commits
mailing list