diff options
author | tof <> | 2008-05-07 16:27:43 +0000 |
---|---|---|
committer | tof <> | 2008-05-07 16:27:43 +0000 |
commit | 2c96e6fec5de32b13bc840d76a6e92c3d27f2c0d (patch) | |
tree | b294825372337b6a9c8485b92ad75fc0d3322006 /framework | |
parent | bbb14d2f557204e22080a3099cd2aaa3c7efa689 (diff) |
Fixed #849
Diffstat (limited to 'framework')
-rw-r--r-- | framework/Web/Javascripts/source/prado/datepicker/datepicker.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/framework/Web/Javascripts/source/prado/datepicker/datepicker.js b/framework/Web/Javascripts/source/prado/datepicker/datepicker.js index cc5b9c1e..834e89cf 100644 --- a/framework/Web/Javascripts/source/prado/datepicker/datepicker.js +++ b/framework/Web/Javascripts/source/prado/datepicker/datepicker.js @@ -474,7 +474,7 @@ Prado.WebUI.TDatePicker.prototype = },
onChange : function()
- {
+ {
if(this.options.InputMode == "TextBox")
{
this.control.value = this.formatDate();
@@ -525,10 +525,11 @@ Prado.WebUI.TDatePicker.prototype = return;
var old=this.selectedDate;
this.selectedDate = this.newDate(date);
+ var dateChanged=(old - this.selectedDate != 0) || ( this.options.InputMode == "TextBox" && this.control.value != this.formatDate());
this.updateHeader();
this.update();
- if (old - this.selectedDate !=0 && typeof(this.onChange) == "function")
+ if (dateChanged && typeof(this.onChange) == "function")
this.onChange(this, date);
},
|