Ticket #5026 (closed bug: fixed)
Comparison between 2 date / Firefox 3.5.6
| Reported by: | Flany | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.8 |
| Component: | ui.datepicker | Version: | 1.7.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
in Firefox when you set minDate and maxDate (to whatever you want), at first load there's no problem. when you change month both links to change month became unselectable. This function has the bug : _isInRange . Because the comparison between minDate and maxDate always return false (except on load).
I don't (and can't) explain the source this issue, perhaps it's microsoftAjax, or another JS API used by my enterprise.
I bypassed the bug with this line of code :
| date >= minDate) && (!maxDate | date <= maxDate)); |
| (parseFloat(Date.parse(date))>=parseFloat(Date.parse(minDate))))&&(!maxDate | (parseFloat(Date.parse(date))<=parseFloat(Date.parse(maxDate))))) |
I just change date to number and made the comparison. Hope this can help.
Change History
Note: See
TracTickets for help on using
tickets.

