Opened 12 years ago

Closed 12 years ago

#6902 closed bug (notabug)

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:


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 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.

Change History (2)

comment:1 Changed 12 years ago by Lynge

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.

comment:2 Changed 12 years ago by Scott González

Resolution: invalid
Status: newclosed

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

Note: See TracTickets for help on using tickets.