Author: pyaschenko
Date: 2007-09-05 05:21:18 -0400 (Wed, 05 Sep 2007)
New Revision: 2757
Modified:
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
Log:
added user defined pattern to getSelectedDateString function instead hardcoded
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-05
09:09:23 UTC (rev 2756)
+++
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2007-09-05
09:21:18 UTC (rev 2757)
@@ -659,7 +659,7 @@
},
getSelectedDateString: function(pattern) {
if (!this.selectedDate) return "";
- if (!pattern) pattern = "dd/MM/yyyy";
+ if (!pattern) pattern = this.params.datePattern;
return this.selectedDate.format(pattern, this.params.monthLabels,
this.params.monthLabelsShort);
},
Show replies by date