jQuery: The Write Less, Do More JavaScript Library

Ticket #1945 (closed bug: wontfix)

Opened 9 months ago

Last modified 7 months ago

UI Datepicker

Reported by: jacques Assigned to: iMarc
Type: bug Priority: blocker
Milestone: 1.2.2 Component: ui
Version: 1.2.1 Keywords:
Cc: Needs: Review

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

Change History

Changed 9 months ago by paul

  • owner set to iMarc

Changed 9 months ago by kbwood

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

Changed 7 months ago by kbwood

  • status changed from new to closed
  • resolution set to wontfix
Note: See TracTickets for help on using tickets.