public
Description: Click-draggable. Range-makeable. A better calendar.
Homepage: http://stephencelis.com/projects/timeframe
Clone URL: git://github.com/stephencelis/timeframe.git
Click here to lend your support to: timeframe and make a donation at www.pledgie.com !
IE7 bugfix: Check for 'NaN' in addition to 'Invalid Date'
stephencelis (author)
Tue Apr 22 13:40:52 -0700 2008
commit  d171b78a78413fb7907179f2d4481071decc0fd9
tree    e10ed1f5267c8a240c32f8d06f95641d98c0aa7e
parent  8d98e68982a59443de4bd8262f46944fa62c2f2c
...
251
252
253
254
 
255
256
 
257
258
259
...
251
252
253
 
254
255
 
256
257
258
259
0
@@ -251,9 +251,9 @@ var Timeframe = Class.create({
0
     this.endfield.value = this.endfield.defaultValue || '';
0
     this.date = new Date(this.defaultDate);
0
     var startdate = new Date(Date.parse(this.startfield.value)).neutral();
0
- this.startdate = startdate == 'Invalid Date' ? null : startdate;
0
+ this.startdate = (startdate == 'Invalid Date' || startdate == 'NaN') ? null : startdate;
0
     var enddate = new Date(Date.parse(this.endfield)).neutral();
0
- this.enddate = enddate == 'Invalid Date' ? null : enddate;
0
+ this.enddate = (enddate == 'Invalid Date' || enddate == 'NaN') ? null : enddate;
0
   },
0
   
0
   handleDateClick: function(element, couldClear) {

Comments

    No one has commented yet.