Author: pyaschenko
Date: 2007-09-12 11:06:37 -0400 (Wed, 12 Sep 2007)
New Revision: 2905
Modified:
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
Log:
RF-877
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 2007-09-12
14:23:43 UTC (rev 2904)
+++
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2007-09-12
15:06:37 UTC (rev 2905)
@@ -577,7 +577,7 @@
if (baseInput && baseInput.value!=undefined)
{
- this.selectDate(baseInput.value, true);
+ this.selectDate(baseInput.value);
}
var iframe = $(this.IFRAME_ID);
@@ -1267,8 +1267,17 @@
resetSelectedDate: function()
{
if (!this.selectedDate) return;
- if (this.selectDate(null))
+ if (this.invokeEvent("dateselect", null, null, null))
{
+ this.selectedDate = null;
+ $(this.INPUT_DATE_ID).value = "";
+ if (this.selectedDateElement)
+ {
+ Element.removeClassName(this.selectedDateElement, "rich-calendar-select");
+ this.selectedDateElement = null;
+ }
+ this.renderHeader();
+ this.renderFooter();
this.doCollapse();
}
},
Show replies by date