Skip to main content

Search and Top Navigation

#4536 closed bug (fixed)

Opened May 16, 2009 06:25AM UTC

Closed June 22, 2009 02:08AM UTC

datepicker maxDate doesn't take into account column layout

Reported by: davidascher Owned by:
Priority: minor Milestone: 1.8
Component: ui.datepicker Version: 1.7.1
Keywords: grids Cc:
Blocked by: Blocking:

The following code:

          minDate: new Date(2009, 0, 1, 0),
          maxDate: new Date(2009, 11, 31),
          defaultDate: new Date(2009, 1, 0),
          numberOfMonths: [3,4],
          inline: true,
          changeMonth: false,
          hideIfNoPrefNext: true,

correctly displays a year's worth of calendars, but it shouldn't allow "next". Instead, it allows scrolling until the last month is the one in the top-right of the grid.

Looks like the "next" button disabling should use the last month in the grid, not the last month in the row.

Attachments (0)
Change History (2)

Changed May 17, 2009 01:19PM UTC by jzaefferer comment:1

milestone: TBD1.8

Changed June 22, 2009 02:08AM UTC by kbwood comment:2

resolution: → fixed
status: newclosed

Fixed in r2826.