Skip to main content

Bug Tracker

Side navigation

#1945 closed bug (wontfix)

Opened November 19, 2007 12:37PM UTC

Closed January 07, 2008 04:25AM UTC

UI Datepicker

Reported by: jacques Owned by: iMarc
Priority: undecided Milestone: 1.2.2
Component: ui Version: 1.2.1
Keywords: Cc:
Blocked by: Blocking:
Description

Hi when I follow the example from http://marcgrabanski.com/code/ui-datepicker/ (date range tab)

$('.dateRange').datepicker({beforeShow: customRange});

// Customize two date pickers to work as a date range

function customRange(input) {

return {minDate: (input.id == 'dTo' ? getDate($('#dFrom').val()) : null),

maxDate: (input.id == 'dFrom' ? getDate($('#dTo').val()) : null)};

}

I have an error : "getDate is not defined". Error appears in IE and Firefox

Please advise on how to fix.

Thanks

Jacques

Attachments (0)
Change History (3)

Changed November 19, 2007 01:45PM UTC by paul comment:1

owner: → iMarc

Changed November 21, 2007 01:11AM UTC by kbwood comment:2

This function is defined in the ui.datepicker.demo.js file referenced on that page.

Changed January 07, 2008 04:25AM UTC by kbwood comment:3

resolution: → wontfix
status: newclosed