aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorKeith Wood <kbwood.au@gmail.com>2010-01-13 08:42:53 +0000
committerKeith Wood <kbwood.au@gmail.com>2010-01-13 08:42:53 +0000
commit7f5fe2f2f14406a0c028e92ab6203ae0b72a1e96 (patch)
tree7880dd82266df82cc08a9afdb6c69335675b70ed /ui
parent07a4a228c076c1892ce78a3fec22232e549de962 (diff)
downloadjquery-ui-7f5fe2f2f14406a0c028e92ab6203ae0b72a1e96.tar.gz
jquery-ui-7f5fe2f2f14406a0c028e92ab6203ae0b72a1e96.zip
Datepicker: Fixed #5026 Comparison between 2 date
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.datepicker.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js
index 811d28b83..42558476e 100644
--- a/ui/jquery.ui.datepicker.js
+++ b/ui/jquery.ui.datepicker.js
@@ -1638,7 +1638,8 @@ $.extend(Datepicker.prototype, {
_isInRange: function(inst, date) {
var minDate = this._getMinMaxDate(inst, 'min');
var maxDate = this._getMinMaxDate(inst, 'max');
- return ((!minDate || date >= minDate) && (!maxDate || date <= maxDate));
+ return ((!minDate || date.getTime() >= minDate.getTime()) &&
+ (!maxDate || date.getTime() <= maxDate.getTime()));
},
/* Provide the configuration settings for formatting/parsing. */