[jboss-cvs] jboss-seam/src/ui/org/jboss/seam/ui/resource/date ...
Shane Bryzak
sbryzak at redhat.com
Tue Mar 13 19:48:59 EDT 2007
User: sbryzak2
Date: 07/03/13 19:48:59
Modified: src/ui/org/jboss/seam/ui/resource/date calendar.js
Log:
JBSEAM-1044
Revision Changes Path
1.5 +7 -0 jboss-seam/src/ui/org/jboss/seam/ui/resource/date/calendar.js
(In the diff below, changes in quantity of whitespace are not shown.)
Index: calendar.js
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/ui/org/jboss/seam/ui/resource/date/calendar.js,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- calendar.js 13 Mar 2007 13:13:19 -0000 1.4
+++ calendar.js 13 Mar 2007 23:48:59 -0000 1.5
@@ -497,6 +497,13 @@
__Calendar.prototype.buildDayHeaders = function()
{
+ var selectedDate = __calendarFactory.parseDateValue(getObject(this.name).value);
+ if (selectedDate)
+ {
+ this.selectedMonth = selectedDate.getMonth() + 1;
+ this.selectedYear = selectedDate.getFullYear();
+ }
+
var html = "<tr class=\"" + this.styleClass + "-header\">";
html += "<td colspan=\"" + DAYS_IN_WEEK + "\"><table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\"><tr>";
if (!this.staticCalendar)
More information about the jboss-cvs-commits
mailing list