Changeset 2460 for trunk/framework/Web
- Timestamp:
- 05/07/2008 11:27:43 AM (8 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/framework/Web/Javascripts/source/prado/datepicker/datepicker.js
r2404 r2460 475 475 476 476 onChange : function() 477 { 477 { 478 478 if(this.options.InputMode == "TextBox") 479 479 { … … 526 526 var old=this.selectedDate; 527 527 this.selectedDate = this.newDate(date); 528 var dateChanged=(old - this.selectedDate != 0) || ( this.options.InputMode == "TextBox" && this.control.value != this.formatDate()); 528 529 529 530 this.updateHeader(); 530 531 this.update(); 531 if ( old - this.selectedDate !=0&& typeof(this.onChange) == "function")532 if (dateChanged && typeof(this.onChange) == "function") 532 533 this.onChange(this, date); 533 534 },
