Skip to content
Permalink
Browse files

Datepicker: Fixed #5026 Comparison between 2 date

  • Loading branch information...
Keith Wood
Keith Wood committed Jan 13, 2010
1 parent 07a4a22 commit 7f5fe2f2f14406a0c028e92ab6203ae0b72a1e96
Showing with 2 additions and 1 deletion.
  1. +2 −1 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. */

0 comments on commit 7f5fe2f

Please sign in to comment.
You can’t perform that action at this time.