Skip to main content

Search and Top Navigation

#2395 closed bug (fixed)

Opened February 22, 2008 10:47PM UTC

Closed February 25, 2008 03:59AM UTC

Last modified February 26, 2009 11:31AM UTC

jQuery UI/Datepicker 3.3 - .datepicker('getDate') doesn't work

Reported by: adsmart Owned by: paul
Priority: blocker Milestone: 1.5
Component: ui.core Version: 1.2.3
Keywords: datepicker ui 3.4 Cc:
Blocked by: Blocking:
Description

The recent updates to DatePicker are flawed in a few ways.

The new $.fn.datepicker function is calling deprecated functions by using:

this[option + 'DatePicker'].call(this, args)

Unfortunately, that doesn't work for getDate and SetDate since the functions there are

$.fn.getDatepickerDate

$.fn.setDatepickerDate

clearly this doesn't fit with the model.

Secondly, implementing the new API by calling out to the old, deprecated API is a very bad idea. Its going to make it that much more difficult to retire the old interface. The implementations should all be internal to $.fn.datepicker and the old API should call it.

You can test this by taking the demo that comes with the jQuery UI bundle and simply calling .datepicker("getDate');

Attachments (0)
Change History (3)

Changed February 25, 2008 03:59AM UTC by kbwood comment:1

resolution: → fixed
status: newclosed

Fixed in the latest version.

Changed May 24, 2008 03:39AM UTC by comment:2

milestone: 1.2.4

Milestone 1.2.4 deleted

Changed February 26, 2009 11:31AM UTC by paul comment:3

milestone: → 1.5