Author: nbelaevski
Date: 2007-07-19 19:58:58 -0400 (Thu, 19 Jul 2007)
New Revision: 1723
Modified:
trunk/sandbox/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
trunk/sandbox/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
Log:
slight calendar fixes
Modified:
trunk/sandbox/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
===================================================================
---
trunk/sandbox/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2007-07-19
23:52:25 UTC (rev 1722)
+++
trunk/sandbox/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2007-07-19
23:58:58 UTC (rev 1723)
@@ -152,7 +152,7 @@
oncompleteDefinition.addParameter("request");
oncompleteDefinition.addParameter("event");
oncompleteDefinition.addParameter("data");
- oncompleteDefinition.addToBody("this.calendar.load(data);");
+ oncompleteDefinition.addToBody("this.calendar.load(data, true);");
if (oncomplete != null) {
oncompleteDefinition.addToBody(oncomplete);
}
Modified:
trunk/sandbox/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
===================================================================
---
trunk/sandbox/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2007-07-19
23:52:25 UTC (rev 1722)
+++
trunk/sandbox/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2007-07-19
23:58:58 UTC (rev 1723)
@@ -567,10 +567,11 @@
onUpdate: function()
{
- $(this.id+'InputCurrentDate').value=this.getCurrentDate().format("MM/y");
+ var formattedDate = this.getCurrentDate().format("MM/y");
+ $(this.id+'InputCurrentDate').value=formattedDate;
if (this.submitFunction)
- this.submitFunction(this.getCurrentMonth() + '/' + this.getCurrentYear());
+ this.submitFunction(formattedDate);
else
this.render();
},
Show replies by date