summaryrefslogtreecommitdiff
path: root/framework/Web
diff options
context:
space:
mode:
authorxue <>2007-07-17 11:27:51 +0000
committerxue <>2007-07-17 11:27:51 +0000
commit8313b3412e0db7262966a60b859093e6577abb46 (patch)
treef723fd7ca2eca5070c64809aa3ab0994bcd8fa39 /framework/Web
parent29d85fd0937c62e0b096cb4b55c7ab952faee9c1 (diff)
Fixed #670.
Diffstat (limited to 'framework/Web')
-rw-r--r--framework/Web/Javascripts/source/prado/datepicker/datepicker.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Web/Javascripts/source/prado/datepicker/datepicker.js b/framework/Web/Javascripts/source/prado/datepicker/datepicker.js
index 6dddeaad..ade26d26 100644
--- a/framework/Web/Javascripts/source/prado/datepicker/datepicker.js
+++ b/framework/Web/Javascripts/source/prado/datepicker/datepicker.js
@@ -473,7 +473,7 @@ Prado.WebUI.TDatePicker.prototype =
date = new Date();
if(typeof(date) == "string" || typeof(date) == "number")
date = new Date(date);
- return new Date(date.getFullYear(), date.getMonth(), date.getDate(), 0,0,0);
+ return new Date(Math.min(Math.max(date.getFullYear(),this.FromYear),this.UpToYear), date.getMonth(), date.getDate(), 0,0,0);
},
setSelectedDate : function(date)