Author: ilya_shaikovsky
Date: 2009-03-27 10:34:19 -0400 (Fri, 27 Mar 2009)
New Revision: 13261
Modified:
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
Log:
https://jira.jboss.org/jira/browse/RF-6624
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 2009-03-27
14:25:51 UTC (rev 13260)
+++
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2009-03-27
14:34:19 UTC (rev 13261)
@@ -1350,10 +1350,10 @@
},
setupTimeForDate: function (date) {
- if (this.selectedDate && !this.params.resetTimeOnDateSelect ||
+ if (this.selectedDate && (!this.params.resetTimeOnDateSelect ||
(this.selectedDate.getFullYear() == date.getFullYear() &&
this.selectedDate.getMonth() == date.getMonth() &&
- this.selectedDate.getDate() == date.getDate()))
+ this.selectedDate.getDate() == date.getDate())))
{
date.setHours(this.selectedDate.getHours());
date.setMinutes(this.selectedDate.getMinutes());