Changeset 2460 for trunk/framework/Web

Show
Ignore:
Timestamp:
05/07/2008 11:27:43 AM (8 months ago)
Author:
tof
Message:

Fixed #849

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/framework/Web/Javascripts/source/prado/datepicker/datepicker.js

    r2404 r2460  
    475475         
    476476        onChange : function() 
    477         { 
     477        {  
    478478                if(this.options.InputMode == "TextBox") 
    479479                { 
     
    526526                var old=this.selectedDate; 
    527527                this.selectedDate = this.newDate(date); 
     528                var dateChanged=(old - this.selectedDate != 0) || ( this.options.InputMode == "TextBox" && this.control.value != this.formatDate()); 
    528529 
    529530                this.updateHeader(); 
    530531                this.update(); 
    531                 if (old - this.selectedDate !=0 && typeof(this.onChange) == "function") 
     532                if (dateChanged && typeof(this.onChange) == "function") 
    532533                        this.onChange(this, date); 
    533534        },