Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#1945 closed bug (wontfix)

UI Datepicker

Reported by: jacques Owned by: iMarc
Priority: blocker Milestone:
Component: ui.core 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

Change History (4)

comment:1 Changed 12 years ago by paul

Owner: set to iMarc

comment:2 Changed 12 years ago by kbwood

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

comment:3 Changed 12 years ago by kbwood

Resolution: wontfix
Status: newclosed

comment:4 Changed 12 years ago by (none)

Milestone: 1.2.2

Milestone 1.2.2 deleted

Note: See TracTickets for help on using tickets.