diff options
author | Keith Wood <kbwood.au@gmail.com> | 2010-01-13 08:42:53 +0000 |
---|---|---|
committer | Keith Wood <kbwood.au@gmail.com> | 2010-01-13 08:42:53 +0000 |
commit | 7f5fe2f2f14406a0c028e92ab6203ae0b72a1e96 (patch) | |
tree | 7880dd82266df82cc08a9afdb6c69335675b70ed /ui | |
parent | 07a4a228c076c1892ce78a3fec22232e549de962 (diff) | |
download | jquery-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.js | 3 |
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. */ |