Author: jleroux
Date: Tue Jun 7 18:14:53 2011
New Revision: 1133119
URL:
http://svn.apache.org/viewvc?rev=1133119&view=revLog:
Revert r1133111. I suddenly remembered that we need also to handle time in such fields. And this change breaks it.
Modified:
ofbiz/branches/release10.04/framework/images/webapp/images/calendarDateSelect/calendar_date_select.js
Modified: ofbiz/branches/release10.04/framework/images/webapp/images/calendarDateSelect/calendar_date_select.js
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release10.04/framework/images/webapp/images/calendarDateSelect/calendar_date_select.js?rev=1133119&r1=1133118&r2=1133119&view=diff==============================================================================
--- ofbiz/branches/release10.04/framework/images/webapp/images/calendarDateSelect/calendar_date_select.js (original)
+++ ofbiz/branches/release10.04/framework/images/webapp/images/calendarDateSelect/calendar_date_select.js Tue Jun 7 18:14:53 2011
@@ -360,8 +360,6 @@ CalendarDateSelect.prototype = {
{
var value = $F(this.target_element).strip()
this.selection_made = (value != "");
- var patt=/[-]/gi;
- value = value.replace(patt,'/');
this.date = value=="" ? NaN : Date.parseFormattedString(this.options.get("date") || value);
if (isNaN(this.date)) this.date = new Date();
if (!this.validYear(this.date.getFullYear())) this.date.setYear( (this.date.getFullYear() < this.yearRange().start) ? this.yearRange().start : this.yearRange().end);