summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
Diffstat (limited to 'framework')
-rw-r--r--framework/Web/Javascripts/source/prado/datepicker/datepicker.js5
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);
},