Skip to main content

Search and Top Navigation

#5026 closed bug (fixed)

Opened December 28, 2009 05:01PM UTC

Closed January 13, 2010 08:43AM UTC

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:
Blocked by: Blocking:
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 || date >= minDate) && (!maxDate || date <= maxDate));

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

Attachments (0)
Change History (2)

Changed December 29, 2009 01:36AM UTC by scottgonzalez comment:1

milestone: TBD1.8

Changed January 13, 2010 08:43AM UTC by kbwood comment:2

resolution: → fixed
status: newclosed

Fixed in r3671.