[jboss-cvs] jboss-seam/src/ui/org/jboss/seam/ui/resource/date ...
Shane Bryzak
sbryzak at redhat.com
Tue Mar 13 19:52:40 EDT 2007
User: sbryzak2
Date: 07/03/13 19:52:40
Modified: src/ui/org/jboss/seam/ui/resource/date calendar.js
Log:
bah, fixed bug
Revision Changes Path
1.6 +8 -8 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.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- calendar.js 13 Mar 2007 23:48:59 -0000 1.5
+++ calendar.js 13 Mar 2007 23:52:40 -0000 1.6
@@ -431,6 +431,13 @@
__Calendar.prototype.popup = function (locX, locY)
{
+ var selectedDate = __calendarFactory.parseDateValue(getObject(this.name).value);
+ if (selectedDate)
+ {
+ this.selectedMonth = selectedDate.getMonth() + 1;
+ this.selectedYear = selectedDate.getFullYear();
+ }
+
this.isPopup = true;
__calendarFactory.documentmousedown = document.onmousedown;
@@ -497,13 +504,6 @@
__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