Ticket #5026 (closed bug: fixed)

Opened 5 years ago

Last modified 5 years ago

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 :

BUG: return ((!minDate FIX:return((!minDate
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

comment:1 Changed 5 years ago by scott.gonzalez

  • Milestone changed from TBD to 1.8

comment:2 Changed 5 years ago by kbwood

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in r3671.

Note: See TracTickets for help on using tickets.