Changeset 259 for trunk/common
- Timestamp:
- 02/06/08 05:04:04 (22 months ago)
- Files:
-
- 1 modified
-
trunk/common/Calendar.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/common/Calendar.js
r159 r259 256 256 } else 257 257 m++; 258 258 259 259 if ( this.disallowFuture ) { 260 260 var dt = this.dateObject.clone(); … … 271 271 } 272 272 273 this.month( m );274 273 this.year( y ); 274 275 /* if setting the month fails, reset the date to the last day of the month first */ 276 if ( this.month( m ) != m ) { 277 this.date( this.getDaysInMonth( m ) ); 278 this.month( m ); 279 } 275 280 276 281 return true; … … 288 293 m--; 289 294 290 this.month( m );291 295 this.year( y ); 296 297 /* if setting the month fails, reset the date to the last day of the month first */ 298 if ( this.month( m ) != m ) { 299 this.date( this.getDaysInMonth( m ) ); 300 this.month( m ); 301 } 292 302 293 303 return true;
