Author: pyaschenko
Date: 2007-09-11 06:37:55 -0400 (Tue, 11 Sep 2007)
New Revision: 2860
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-11
10:37:23 UTC (rev 2859)
+++
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2007-09-11
10:37:55 UTC (rev 2860)
@@ -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