[richfaces-svn-commits] JBoss Rich Faces SVN: r11459 - trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Mon Dec 1 11:44:45 EST 2008


Author: pyaschenko
Date: 2008-12-01 11:44:45 -0500 (Mon, 01 Dec 2008)
New Revision: 11459

Modified:
   trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
Log:
https://jira.jboss.org/jira/browse/RF-4805

Modified: trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
===================================================================
--- trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js	2008-12-01 15:55:41 UTC (rev 11458)
+++ trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js	2008-12-01 16:44:45 UTC (rev 11459)
@@ -1914,7 +1914,7 @@
 				var d = new Date(this.selectedDate);
 				if (d.getMonth()==this.currentDate.getMonth() && d.getFullYear()==this.currentDate.getFullYear())
 				{
-					if (!oldSelectedDate || oldSelectedDate.getDate()!=d.getDate())
+					if (!oldSelectedDate || (oldSelectedDate - this.selectedDate))
 					{
 						// find cell and change style class
 						var e = $(this.DATE_ELEMENT_ID+(this.firstDateIndex + this.selectedDate.getDate()-1));




More information about the richfaces-svn-commits mailing list