Skip to main content

Search and Top Navigation

#6902 closed bug (notabug)

Opened January 26, 2011 08:27PM UTC

Closed January 26, 2011 09:14PM UTC

Datepicker and datejs not compatible.

Reported by: Lynge Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.datepicker Version: 1.8.9
Keywords: Cc:
Blocked by: Blocking:
Description

I am not sure this is a jQuery UI problem, but since the other project looks like its stalled, maybe you could just make a note of this.

If I import date.js (from www.datejs.com) on to any page, then Datepicker will not work. It assigns the hasDatepicker class, but it does not show it self.

As soon as I remove the import statement for date.js, datepicker starts working.

It produces no error in the console, so I cannot say what exactly isn't working.

I have not provided a test case since it is so simple to just try and import date.js

This was tested on the newest versions of both libraries. Downloaded today.

Attachments (0)
Change History (2)

Changed January 26, 2011 08:45PM UTC by Lynge comment:1

I have just discovered that importing date.js before any jQuery imports and NOT importing any of the other datejs files (core.js time.js etc) Then everything seems to work. Datepicker shows itself and seems to function as it should.

Very weird.

Changed January 26, 2011 09:14PM UTC by scottgonzalez comment:2

resolution: → invalid
status: newclosed

Datejs modified the native Date prototype, which we don't support.